Skip to content

Commit

Permalink
Spell: Implement GetDamageForEffect for scripting purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jan 12, 2024
1 parent a98131b commit a8fc3ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/game/Spells/Spell.h
Original file line number Diff line number Diff line change
Expand Up @@ -861,9 +861,10 @@ class Spell
// OnInit use only
void SetEffectSkipMask(uint32 mask) { m_effectSkipMask = mask; }
// OnHit use only
uint32 GetTotalTargetDamage() { return m_damage; }
uint32 GetTotalTargetAbsorb() { return m_absorb; }
uint32 GetTotalTargetDamage() const { return m_damage; }
uint32 GetTotalTargetAbsorb() const { return m_absorb; }
void SetTotalTargetValueModifier(float modifier);
int32 GetDamageForEffect(SpellEffectIndex effIdx) const { return m_damagePerEffect[effIdx]; }
// script initialization hook only setters - use only if dynamic - else use appropriate helper
void SetMaxAffectedTargets(uint32 newValue) { m_affectedTargetCount = newValue; }
void SetChainTargetsCount(SpellEffectIndex effIdx, uint32 newValue) { m_chainTargetCount[effIdx] = newValue; }
Expand Down

0 comments on commit a8fc3ac

Please sign in to comment.