Skip to content

Instantly share code, notes, and snippets.

@tst12
Created January 31, 2012 23:15
Show Gist options
  • Save tst12/1713698 to your computer and use it in GitHub Desktop.
Save tst12/1713698 to your computer and use it in GitHub Desktop.
void Aura::HandleAuraModAttackPowerOfStatPercent(bool /*apply*/, bool Real)
{
// spells required only Real aura add/remove
if (!Real)
return;
// Recalculate bonus
if (GetTarget()->GetTypeId() == TYPEID_PLAYER)
((Player*)GetTarget())->UpdateAttackPowerAndDamage(false);
+ else if (GetTarget()->GetObjectGuid().IsPet())
+ ((Pet*)GetTarget())->UpdateAttackPowerAndDamage(false);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment