Fix coding style
This commit is contained in:
@@ -3112,11 +3112,9 @@ void Spell::cast(bool skipCheck)
|
||||
if (Pet* playerPet = playerCaster->GetPet())
|
||||
{
|
||||
if (playerPet->isAlive() && playerPet->isControlled() && (m_targets.GetTargetMask() & TARGET_FLAG_UNIT))
|
||||
{
|
||||
playerPet->AI()->OwnerAttacked(m_targets.GetObjectTarget()->ToUnit());
|
||||
}
|
||||
}
|
||||
}
|
||||
SetExecutedCurrently(true);
|
||||
|
||||
if (m_caster->GetTypeId() != TYPEID_PLAYER && m_targets.GetUnitTarget() && m_targets.GetUnitTarget() != m_caster)
|
||||
|
||||
Reference in New Issue
Block a user