diff options
author | Drahy <none@none> | 2009-04-30 22:28:49 +0200 |
---|---|---|
committer | Drahy <none@none> | 2009-04-30 22:28:49 +0200 |
commit | b225a3adf1e285346c24973a64a25ebf28ec0739 (patch) | |
tree | 111037eaa40fb91f0f91e7ec402184d1b9f5817e /src/game/Unit.cpp | |
parent | e55fec03ffd0a1e11995f4f243d0a0d8763b37b5 (diff) |
* Try to fix the bug that pet cannot attack players in arena - thx megamage
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 6df490c9185..127623dfb6c 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8135,6 +8135,9 @@ void Unit::SetGuardian(Guardian* guardian, bool apply) } // FIXME: hack, speed must be set only at follow + if(HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP)) + guardian->SetByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP); + if(GetTypeId() == TYPEID_PLAYER && guardian->HasSummonMask(SUMMON_MASK_PET)) for(int i = 0; i < MAX_MOVE_TYPE; ++i) guardian->SetSpeed(UnitMoveType(i), m_speed_rate[i], true); |