Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core/Spells: Implementing some hooks for split damage taken, #7423

Closed
wants to merge 1 commit into from
Closed

Core/Spells: Implementing some hooks for split damage taken, #7423

wants to merge 1 commit into from

Conversation

Faq
Copy link
Contributor

@Faq Faq commented Aug 17, 2012

fixes the limitation of dmg such auras can split, for example at Hand of Sacrifice. Might have unexpected results, but they are called unexpected for a reason.. .Author Tibbi

closes #6025

@@ -1761,12 +1763,14 @@ void Unit::CalcAbsorbResist(Unit* victim, SpellSchoolMask schoolMask, DamageEffe
continue;

int32 splitDamage = CalculatePctN(dmgInfo.GetDamage(), (*itr)->GetAmount());
uint32 tempDamage = uint32(splitDamage);

(*itr)->GetBase()->CallScriptEffectSplitHandlers((*itr), aurApp, dmgInfo, tempDamage);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you pass tempDamage as a reference, if you are not going to use it afterwards?

@Faq
Copy link
Contributor Author

Faq commented Aug 17, 2012

all comments have been taken care, pls recheck now ;)

…e limitation of dmg such auras can split, for example at Hand of Sacrifice. Might have unexpected results, but they are called unexpected for a reason.. .Author Tibbi
@Faq
Copy link
Contributor Author

Faq commented Sep 14, 2012

anyone mind to merge into master? as none commented about whats wrong with this code...

@Subv
Copy link
Contributor

Subv commented Sep 17, 2012

"This pull request cannot be automatically merged."
Please re pull request it.
@Shauren Please take a look at this.

@Subv Subv closed this Sep 17, 2012
Sovak pushed a commit to ProjectSkyfire/SkyFire_548 that referenced this pull request Nov 29, 2013
…e limitation of dmg such auras can split, for example at Hand of Sacrifice. Might have unexpected results, but they are called unexpected for a reason.. .Author Tibbi

closes #6025

Made new one as TrinityCore/TrinityCore#7423 was closed.
raczman pushed a commit to raczman/TrinityCore that referenced this pull request Apr 20, 2014
…e limitation of dmg such auras can split, for example at Hand of Sacrifice. Might have unexpected results, but they are called unexpected for a reason.. .Author Tibbi

closes TrinityCore#6025

Made new one as TrinityCore#7423 was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hand of Sacrifice - Pala
3 participants