From 7ceace99906f1e598555b530ef6ce447eb38342a Mon Sep 17 00:00:00 2001 From: Andrettin Date: Thu, 17 Mar 2016 20:20:11 +0100 Subject: [PATCH] Fixed issue which prevented the player from winning The Binding of Grafvitnir quest if Grafvitnir was killed --- readme.txt | 1 + .../dwarf/scenarios/the_binding_of_grafvitnir.lua | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/readme.txt b/readme.txt index ee7d2c8b63..14bb6484b5 100644 --- a/readme.txt +++ b/readme.txt @@ -146,6 +146,7 @@ https://github.com/Andrettin/Wyrmsun - The Home of the Boii quest (Teuton) now grants 4 tech points instead of 3. - The Treasures of Svarinshaug quest (Dwarf) now grants 3 tech points instead of 2. - The Necklace of the Brisings quest (Dwarf) now grants 3 tech points instead of 2. +- Fixed issue which prevented the player from winning The Binding of Grafvitnir quest (Dwarf) if Grafvitnir was killed. * Terrain - Overhaul of the forest tilesets (by Exidelo). diff --git a/scripts/civilizations/dwarf/scenarios/the_binding_of_grafvitnir.lua b/scripts/civilizations/dwarf/scenarios/the_binding_of_grafvitnir.lua index f85a151e29..b26799c19b 100644 --- a/scripts/civilizations/dwarf/scenarios/the_binding_of_grafvitnir.lua +++ b/scripts/civilizations/dwarf/scenarios/the_binding_of_grafvitnir.lua @@ -274,6 +274,11 @@ AddTrigger( end end end + + -- also trigger the quest's ending if Grafvitnir has died + if (GetPlayerData(GetFactionPlayer("Grafvitnir"), "UnitTypesCount", "unit-wyrm") == 0) then + return true + end end return false end,