diff options
author | Trista <aconstantgoal@abv.bg> | 2012-12-17 10:39:54 +0200 |
---|---|---|
committer | Trista <aconstantgoal@abv.bg> | 2012-12-17 10:39:54 +0200 |
commit | 5a52acbe40c2a455419b43bbfdda82709a1cbe80 (patch) | |
tree | b362341bea906628e0d73347d1d1d761c41f93d4 /src | |
parent | aa40ddd603810bda9f673d0777711840b9b13684 (diff) |
Core/Quest: Optimize and clean more last commit
* thx to @Gacko and @click for pointing out problems and give suggestiosn
* Sorry for the mess, forgot I can make more changes after initial change, this should be final...
* https://github.com/TrinityCore/TrinityCore/commit/48141bbfa6887095f5b4a687ca3bde516c751771
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Northrend/sholazar_basin.cpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/server/scripts/Northrend/sholazar_basin.cpp b/src/server/scripts/Northrend/sholazar_basin.cpp index f732497f278..5bf45452d34 100644 --- a/src/server/scripts/Northrend/sholazar_basin.cpp +++ b/src/server/scripts/Northrend/sholazar_basin.cpp @@ -1016,20 +1016,13 @@ public: if (target == me) return; - if (spell->Id == SPELL_DEVOUR_WIND) + if (spell->Id == SPELL_DEVOUR_WIND && me->GetCharmerOrOwnerPlayerOrPlayerItself()) { - if (Player* player = me->GetCharmerOrOwnerPlayerOrPlayerItself()) - { - me->UpdateEntry(NPC_HAIPHOON_AIR); - } + me->UpdateEntry(NPC_HAIPHOON_AIR); } - - if (spell->Id == SPELL_DEVOUR_WATER) + else if (spell->Id == SPELL_DEVOUR_WATER && me->GetCharmerOrOwnerPlayerOrPlayerItself()) { - if (Player* player = me->GetCharmerOrOwnerPlayerOrPlayerItself()) - { - me->UpdateEntry(NPC_HAIPHOON_WATER); - } + me->UpdateEntry(NPC_HAIPHOON_WATER); } } }; |