Fix coding style

This commit is contained in:
MrSmite
2012-04-06 12:33:34 -04:00
parent b843688fa8
commit cc03f2db36
-2
View File
@@ -3112,11 +3112,9 @@ void Spell::cast(bool skipCheck)
if (Pet* playerPet = playerCaster->GetPet()) if (Pet* playerPet = playerCaster->GetPet())
{ {
if (playerPet->isAlive() && playerPet->isControlled() && (m_targets.GetTargetMask() & TARGET_FLAG_UNIT)) if (playerPet->isAlive() && playerPet->isControlled() && (m_targets.GetTargetMask() & TARGET_FLAG_UNIT))
{
playerPet->AI()->OwnerAttacked(m_targets.GetObjectTarget()->ToUnit()); playerPet->AI()->OwnerAttacked(m_targets.GetObjectTarget()->ToUnit());
} }
} }
}
SetExecutedCurrently(true); SetExecutedCurrently(true);
if (m_caster->GetTypeId() != TYPEID_PLAYER && m_targets.GetUnitTarget() && m_targets.GetUnitTarget() != m_caster) if (m_caster->GetTypeId() != TYPEID_PLAYER && m_targets.GetUnitTarget() && m_targets.GetUnitTarget() != m_caster)