[0091] Define SPELL_ATTR_EX8_IGNORE_TARGET_FOR_COMBO_POINTS

Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
This commit is contained in:
Yaki Khadafi 2012-08-14 19:06:50 +03:00 committed by Antz
parent 33ab9c7277
commit 19d898c836
4 changed files with 7 additions and 5 deletions

View file

@ -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())