Fix Beacon of Light: make it work when casted on other players (no initial aggro on caster)

Fix by Liberate

--HG--
branch : trunk
This commit is contained in:
click
2010-04-21 22:33:20 +02:00
parent e4164b8c16
commit 3a826ecfee
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -2260,6 +2260,11 @@ void AuraEffect::TriggerSpell(Unit * target, Unit * caster) const
case 54362: case 54362:
target->CastCustomSpell(triggerSpellId, SPELLVALUE_RADIUS_MOD, (int32)((((float)m_tickNumber / 60) * 0.9f + 0.1f) * 10000), NULL, true, NULL, this); target->CastCustomSpell(triggerSpellId, SPELLVALUE_RADIUS_MOD, (int32)((((float)m_tickNumber / 60) * 0.9f + 0.1f) * 10000), NULL, true, NULL, this);
return; return;
// Beacon of Light
case 53563:
Unit * triggerCaster = (Unit *)(GetBase()->GetOwner());
triggerCaster->CastSpell(triggerTarget, triggeredSpellInfo, true, 0, this,triggerCaster->GetGUID());
return;
} }
} }
+3
View File
@@ -3843,6 +3843,9 @@ void SpellMgr::LoadSpellCustomAttr()
spellInfo->MaxAffectedTargets = 3; spellInfo->MaxAffectedTargets = 3;
count++; count++;
break; break;
case 53651:
spellInfo->AttributesEx3 |= SPELL_ATTR_EX3_NO_INITIAL_AGGRO;
break;
default: default:
break; break;
} }