Scripts/SM: Fix dead anymation of Fairbanks
Patch by DennisRassmann (25/10/2010) Closes #4998
This commit is contained in:
@@ -2936,7 +2936,7 @@ void Player::GiveXP(uint32 xp, Unit* victim, float group_rate)
|
||||
if (xp < 1)
|
||||
return;
|
||||
|
||||
if (!isAlive() && !GetBattleGroundId())
|
||||
if (!isAlive() && !GetBattlegroundId())
|
||||
return;
|
||||
|
||||
if (HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_NO_XP_GAIN))
|
||||
|
||||
+7
-1
@@ -66,9 +66,15 @@ public:
|
||||
Sleep_Timer = 30000;
|
||||
Dispel_Timer = 20000;
|
||||
PowerWordShield = false;
|
||||
me->SetStandState(UNIT_STAND_STATE_DEAD);
|
||||
me->SetUInt32Value(UNIT_FIELD_BYTES_1, 7);
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
{
|
||||
me->SetStandState(UNIT_STAND_STATE_STAND);
|
||||
me->SetUInt32Value(UNIT_FIELD_BYTES_1, 0);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user