Created
May 7, 2015 18:22
-
-
Save Goatform/471e074854b26540532e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Unit::SendAttackStateUpdate(uint32 HitInfo, Unit* target, uint8 /*SwingType*/, SpellSchoolMask damageSchoolMask, uint32 Damage, uint32 AbsorbDamage, uint32 Resist, VictimState TargetState, uint32 BlockedAmount) | |
| { | |
| CalcDamageInfo dmgInfo; | |
| dmgInfo.HitInfo = HitInfo; | |
| dmgInfo.attacker = this; | |
| dmgInfo.target = target; | |
| dmgInfo.damage = Damage - AbsorbDamage - Resist - BlockedAmount; | |
| dmgInfo.damageSchoolMask = damageSchoolMask; | |
| dmgInfo.absorb = AbsorbDamage; | |
| dmgInfo.resist = Resist; | |
| dmgInfo.TargetState = TargetState; | |
| dmgInfo.blocked_amount = BlockedAmount; | |
| SendAttackStateUpdate(&dmgInfo); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment