Script/Spell: Apply Shadow's Fate to Sindragosa

Sindgragosa is summoned in instance script and would not pass the modified check otherwise

Related to: #9487
This commit is contained in:
Gacko
2013-03-22 21:31:49 +01:00
parent 4c8ff6e6a3
commit ccb95c7462

View File

@@ -813,6 +813,7 @@ class spell_item_scroll_of_recall : public SpellScriptLoader
enum ShadowsFate
{
SPELL_SOUL_FEAST = 71203,
NPC_SINDRAGOSA = 36853
};
class spell_item_unsated_craving : public SpellScriptLoader
@@ -831,7 +832,7 @@ class spell_item_unsated_craving : public SpellScriptLoader
return false;
Unit* target = procInfo.GetActionTarget();
if (!target || target->GetTypeId() != TYPEID_UNIT || target->GetCreatureType() == CREATURE_TYPE_CRITTER || target->isSummon())
if (!target || target->GetTypeId() != TYPEID_UNIT || target->GetCreatureType() == CREATURE_TYPE_CRITTER || (target->GetEntry() != NPC_SINDRAGOSA && target->isSummon()))
return false;
return true;