*Fix a bug that possessed creature cannot melee.
--HG-- branch : trunk
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user