*Fix a bug that possessed creature cannot melee.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-07 00:53:30 -06:00
parent 5627f5e838
commit 6dc06ab53b
+1 -2
View File
@@ -118,9 +118,8 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data )
//if(!pet->IsWithinLOSInMap(TargetUnit)) //if(!pet->IsWithinLOSInMap(TargetUnit))
// return; // return;
if(pet->GetTypeId() != TYPEID_PLAYER) if(pet->GetTypeId() != TYPEID_PLAYER && ((Creature*)pet)->IsAIEnabled)
{ {
if (((Creature*)pet)->IsAIEnabled)
((Creature*)pet)->AI()->AttackStart(TargetUnit); ((Creature*)pet)->AI()->AttackStart(TargetUnit);
//10% chance to play special pet attack talk, else growl //10% chance to play special pet attack talk, else growl