*Always use idle motion as default for triggers.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-29 21:30:08 -05:00
parent 38c22f4190
commit 83d468c7ee

View File

@@ -204,6 +204,12 @@ void Creature::SearchFormationAndPath()
if(!lowguid)
return;
if(isTrigger())
{
SetDefaultMovementType(IDLE_MOTION_TYPE);
return;
}
bool usePath = (GetDefaultMovementType() == WAYPOINT_MOTION_TYPE);
CreatureGroupInfoType::iterator frmdata = CreatureGroupMap.find(lowguid);
if(frmdata != CreatureGroupMap.end())