*Update flame levi script. Fix the bug that it often gets stuck.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-26 22:56:20 -05:00
parent c5ff737ef8
commit f16b93d8d8
8 changed files with 113 additions and 114 deletions
+3
View File
@@ -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;
+2 -1
View File
@@ -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();