Created
January 31, 2012 23:15
-
-
Save tst12/1713698 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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