Removed the set faction from animal blood spell

This commit is contained in:
talamortis
2018-07-06 17:10:41 +01:00
parent 775d5094d2
commit 2c7485c11c

View File

@@ -2268,17 +2268,12 @@ class spell_gen_animal_blood : public SpellScriptLoader
// Remove all auras with spell id 46221, except the one currently being applied
while (Aura* aur = GetUnitOwner()->GetOwnedAura(SPELL_ANIMAL_BLOOD, 0, 0, 0, GetAura()))
GetUnitOwner()->RemoveOwnedAura(aur);
if (Unit* owner = GetUnitOwner())
{
owner->setFaction(FACTION_DETHA_ATTACK);
}
}
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (Unit* owner = GetUnitOwner())
{
owner->RestoreFaction();
if (owner->IsInWater())
owner->CastSpell(owner, SPELL_SPAWN_BLOOD_POOL, true);
}