*Do not apply healing bonus for spells with SPELL_DAMAGE_CLASS_NONE
*Fix Heart of the Crusader. --HG-- branch : trunk
This commit is contained in:
@@ -3366,6 +3366,13 @@ void SpellMgr::LoadSpellCustomAttr()
|
|||||||
|
|
||||||
switch(i)
|
switch(i)
|
||||||
{
|
{
|
||||||
|
// Heart of the Crusader
|
||||||
|
case 20335:
|
||||||
|
case 20336:
|
||||||
|
case 20337:
|
||||||
|
// Entries were not updated after spell effect change, we have to do that manually:/
|
||||||
|
spellInfo->AttributesEx3 |= SPELL_ATTR_EX3_CAN_PROC_TRIGGERED;
|
||||||
|
break;
|
||||||
case 16007: // Draco-Incarcinatrix 900
|
case 16007: // Draco-Incarcinatrix 900
|
||||||
// was 46, but effect is aura effect
|
// was 46, but effect is aura effect
|
||||||
spellInfo->EffectImplicitTargetA[0] = TARGET_UNIT_NEARBY_ENTRY;
|
spellInfo->EffectImplicitTargetA[0] = TARGET_UNIT_NEARBY_ENTRY;
|
||||||
|
|||||||
@@ -6210,6 +6210,16 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
|||||||
}
|
}
|
||||||
switch(dummySpell->Id)
|
switch(dummySpell->Id)
|
||||||
{
|
{
|
||||||
|
// Heart of the Crusader
|
||||||
|
case 20335: // rank 1
|
||||||
|
triggered_spell_id = 21183;
|
||||||
|
break;
|
||||||
|
case 20336: // rank 2
|
||||||
|
triggered_spell_id = 54498;
|
||||||
|
break;
|
||||||
|
case 20337: // rank 3
|
||||||
|
triggered_spell_id = 54499;
|
||||||
|
break;
|
||||||
// Judgement of Light
|
// Judgement of Light
|
||||||
case 20185:
|
case 20185:
|
||||||
{
|
{
|
||||||
@@ -9859,6 +9869,7 @@ uint32 Unit::SpellHealingBonus(Unit *pVictim, SpellEntry const *spellProto, uint
|
|||||||
// No heal coeff for SPELL_DAMAGE_CLASS_NONE class spells by default
|
// No heal coeff for SPELL_DAMAGE_CLASS_NONE class spells by default
|
||||||
else if (scripted || spellProto->DmgClass == SPELL_DAMAGE_CLASS_NONE)
|
else if (scripted || spellProto->DmgClass == SPELL_DAMAGE_CLASS_NONE)
|
||||||
{
|
{
|
||||||
|
scripted = true;
|
||||||
coeff = 0.0f;
|
coeff = 0.0f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user