diff options
| author | Spp <none@none> | 2010-04-19 17:03:10 +0200 |
|---|---|---|
| committer | Spp <none@none> | 2010-04-19 17:03:10 +0200 |
| commit | be01821050dd30ff65e89b347d528efb20aba028 (patch) | |
| tree | 6d33e686bf1c5d664a7104a208a4e057c6337b1e /src/scripts/outland/hellfire_citadel | |
| parent | f74e969a069646eca6227bdede974223c07e9c94 (diff) | |
More warning removal (Some code modifications and cleanup when needed)
--HG--
branch : trunk
Diffstat (limited to 'src/scripts/outland/hellfire_citadel')
| -rw-r--r-- | src/scripts/outland/hellfire_citadel/hellfire_ramparts/boss_vazruden_the_herald.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/scripts/outland/hellfire_citadel/hellfire_ramparts/boss_vazruden_the_herald.cpp b/src/scripts/outland/hellfire_citadel/hellfire_ramparts/boss_vazruden_the_herald.cpp index 649f0382468..181911f77a4 100644 --- a/src/scripts/outland/hellfire_citadel/hellfire_ramparts/boss_vazruden_the_herald.cpp +++ b/src/scripts/outland/hellfire_citadel/hellfire_ramparts/boss_vazruden_the_herald.cpp @@ -98,7 +98,7 @@ struct boss_nazanAI : public ScriptedAI void SpellHitTarget(Unit *pTarget, const SpellEntry* entry) { - if (pTarget && entry->Id == SPELL_FIREBALL) + if (pTarget && entry->Id == uint32(SPELL_FIREBALL)) me->SummonCreature(ENTRY_LIQUID_FIRE,pTarget->GetPositionX(),pTarget->GetPositionY(),pTarget->GetPositionZ(),pTarget->GetOrientation(),TEMPSUMMON_TIMED_DESPAWN,30000); } @@ -260,13 +260,18 @@ struct boss_vazruden_the_heraldAI : public ScriptedAI if (summoned) { Creature *Nazan = Unit::GetCreature(*me, NazanGUID); - Creature *Vazruden = Unit::GetCreature(*me, VazrudenGUID); - if (Nazan || (Nazan = me->FindNearestCreature(ENTRY_NAZAN, 5000))) + if (!Nazan) + Nazan = me->FindNearestCreature(ENTRY_NAZAN, 5000); + if (Nazan) { Nazan->DisappearAndDie(); NazanGUID = 0; } - if (Vazruden || (Vazruden = me->FindNearestCreature(ENTRY_VAZRUDEN, 5000))) + + Creature *Vazruden = Unit::GetCreature(*me, VazrudenGUID); + if (!Vazruden) + Vazruden = me->FindNearestCreature(ENTRY_VAZRUDEN, 5000); + if (Vazruden) { Vazruden->DisappearAndDie(); VazrudenGUID = 0; |
