*Update flame levi script. Fix the bug that it often gets stuck.
--HG-- branch : trunk
This commit is contained in:
@@ -562,6 +562,8 @@ void Creature::Update(uint32 diff)
|
||||
break;
|
||||
}
|
||||
case DEAD_FALLING:
|
||||
GetMotionMaster()->UpdateMotion(diff);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -1817,6 +1819,7 @@ bool Creature::FallGround()
|
||||
if (fabs(ground_Z - z) < 0.1f)
|
||||
return false;
|
||||
|
||||
RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
|
||||
GetMotionMaster()->MovePoint(EVENT_FALL_GROUND, x, y, ground_Z);
|
||||
Unit::setDeathState(DEAD_FALLING);
|
||||
return true;
|
||||
|
||||
@@ -1034,8 +1034,9 @@ uint32 ObjectMgr::ChooseDisplayId(uint32 team, const CreatureInfo *cinfo, const
|
||||
case 33114: // Flame Leviathan Seat (model 24914 chair)
|
||||
case 33167: // Salvaged Demolisher Mechanic Seat
|
||||
return cinfo->DisplayID_A[0];
|
||||
case 33143: // Overload Control Device
|
||||
case 33218: // Pyrite Safety Container
|
||||
return cinfo->DisplayID_A[1];
|
||||
case 33143: // Overload Control Device
|
||||
return cinfo->DisplayID_H[0];
|
||||
default:
|
||||
return cinfo->GetRandomValidModelId();
|
||||
|
||||
Reference in New Issue
Block a user