diff options
author | Manuel Carrasco <mgcarrasco2012@gmail.com> | 2013-02-03 03:01:47 -0200 |
---|---|---|
committer | Manuel Carrasco <mgcarrasco2012@gmail.com> | 2013-02-03 03:01:47 -0200 |
commit | 68610a60ea268b2ee7b3f5c949ff513ec30ab4d3 (patch) | |
tree | 0a356762a9508e642b04b2b9dab0f29a3a209766 | |
parent | 55fc0c58af02f1ae4fa69976a9d351824ffde56e (diff) |
Core/AI: Removed needless code
-rw-r--r-- | src/server/game/AI/CoreAI/UnitAI.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/game/AI/CoreAI/UnitAI.cpp b/src/server/game/AI/CoreAI/UnitAI.cpp index 09ba2cc19b1..0d2f623fd9e 100644 --- a/src/server/game/AI/CoreAI/UnitAI.cpp +++ b/src/server/game/AI/CoreAI/UnitAI.cpp @@ -103,8 +103,7 @@ void UnitAI::DoAddAuraToAllHostilePlayers(uint32 spellid) if (unit->GetTypeId() == TYPEID_PLAYER) me->AddAura(spellid, unit); } - }else - return; + } } void UnitAI::DoCastToAllHostilePlayers(uint32 spellid, bool triggered) @@ -118,8 +117,7 @@ void UnitAI::DoCastToAllHostilePlayers(uint32 spellid, bool triggered) if (unit->GetTypeId() == TYPEID_PLAYER) me->CastSpell(unit, spellid, triggered); } - }else - return; + } } void UnitAI::DoCast(uint32 spellId) |