aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp3
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);