*Fix Coyote Spirit Despawn Aura (52172) and Blood Parrot Despawn Aura (60244) - inspired by Disassembler's patch.

--HG--
branch : trunk
This commit is contained in:
QAston
2009-08-05 17:00:01 +02:00
parent 037fa6eae1
commit d7df4cfa09
5 changed files with 20 additions and 5 deletions

View File

@@ -4646,7 +4646,6 @@ void Spell::EffectScriptEffect(uint32 effIndex)
{
if(!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
return;
((Creature*)unitTarget)->ForcedDespawn();
return;
}
@@ -5010,6 +5009,11 @@ void Spell::EffectScriptEffect(uint32 effIndex)
}
break;
}
case 52173: // Coyote Spirit Despawn
case 60243: // Blood Parrot Despawn
if (unitTarget->GetTypeId() == TYPEID_UNIT && ((Creature*)unitTarget)->isSummon())
((TempSummon*)unitTarget)->UnSummon();
return;
// Sky Darkener Assault
case 52124:
if(unitTarget)
@@ -5085,7 +5089,7 @@ void Spell::EffectScriptEffect(uint32 effIndex)
}
}
return;
case 58983:
case 58983: // Big Blizzard Bear
{
if(!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;