mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[0091] Define SPELL_ATTR_EX8_IGNORE_TARGET_FOR_COMBO_POINTS
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
This commit is contained in:
parent
33ab9c7277
commit
19d898c836
4 changed files with 7 additions and 5 deletions
|
|
@ -9291,7 +9291,8 @@ int32 Unit::CalculateSpellDamage(Unit const* target, SpellEntry const* spellProt
|
|||
int32 value = basePoints;
|
||||
|
||||
// random damage
|
||||
if (comboDamage != 0 && unitPlayer && target && (target->GetObjectGuid() == unitPlayer->GetComboTargetGuid()))
|
||||
if (comboDamage != 0 && unitPlayer &&
|
||||
(target && target->GetObjectGuid() == unitPlayer->GetComboTargetGuid() || spellProto->HasAttribute(SPELL_ATTR_EX8_IGNORE_TARGET_FOR_COMBO_POINTS)))
|
||||
value += (int32)(comboDamage * comboPoints);
|
||||
|
||||
if (Player* modOwner = GetSpellModOwner())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue