diff options
| author | QAston <none@none> | 2009-08-05 17:00:01 +0200 | 
|---|---|---|
| committer | QAston <none@none> | 2009-08-05 17:00:01 +0200 | 
| commit | d7df4cfa099286310639915d70aea0b9cd7183a2 (patch) | |
| tree | 3ba6cbabd1325bc34005502373a9aef57d8e5a70 /src/game/SpellEffects.cpp | |
| parent | 037fa6eae1e88c930ccb123668e552f191e87559 (diff) | |
*Fix Coyote Spirit Despawn Aura (52172) and Blood Parrot Despawn Aura (60244) - inspired by Disassembler's patch.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
| -rw-r--r-- | src/game/SpellEffects.cpp | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index e35b7ea0ff3..9b414ed9f66 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -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;  | 
