Core/Spells: Flag of Ownership shouldn't target creatures

This commit is contained in:
ariel-
2016-10-02 22:15:09 -03:00
committed by Aokromes
parent 6ee820afe4
commit ac084e4ddc

View File

@@ -2751,6 +2751,11 @@ class spell_item_taunt_flag_targeting : public SpellScriptLoader
void FilterTargets(std::list<WorldObject*>& targets)
{
targets.remove_if([](WorldObject* obj) -> bool
{
return obj->GetTypeId() != TYPEID_PLAYER && obj->GetTypeId() != TYPEID_CORPSE;
});
if (targets.empty())
{
FinishCast(SPELL_FAILED_NO_VALID_TARGETS);