diff options
author | click <none@none> | 2010-11-26 02:02:05 +0100 |
---|---|---|
committer | click <none@none> | 2010-11-26 02:02:05 +0100 |
commit | 025d0707522a2038ac7f096c4f90b4107a6872a9 (patch) | |
tree | 13e8b646d567f8562e959e58e25ea2ed0bacb921 /src | |
parent | 54b8bca15553767667f45f7bd408e0a3628da30c (diff) |
Core/Unit: Fix pets aggromode - do not set player in combat untill pet has actually done damage to target (fix by Kaelima)
Closes issue 4894.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index e5291f28271..7ce0b846f7a 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -9389,7 +9389,7 @@ bool Unit::Attack(Unit *victim, bool meleeAttack) //if (GetTypeId() == TYPEID_UNIT) // this->ToCreature()->SetCombatStartPosition(GetPositionX(), GetPositionY(), GetPositionZ()); - if (GetTypeId() == TYPEID_UNIT) + if (GetTypeId() == TYPEID_UNIT && !this->ToCreature()->IsPet()) { // should not let player enter combat by right clicking target SetInCombatWith(victim); |