mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Restore spell 53563 work at 3.2.x
This commit is contained in:
parent
ef19575a59
commit
8ad4f0f10b
3 changed files with 8 additions and 16 deletions
|
|
@ -413,4 +413,5 @@ INSERT INTO spell_check (spellid,SpellFamilyName,SpellFamilyMaskA,SpellFamilyMas
|
||||||
|
|
||||||
/* some random spells from not proccessed files sorted by spell ids */
|
/* some random spells from not proccessed files sorted by spell ids */
|
||||||
/*id fm familyMaskA fmMaskB icon vis cat eff aur ef name code */
|
/*id fm familyMaskA fmMaskB icon vis cat eff aur ef name code */
|
||||||
(53563,-1, -1, -1, -1, -1, -1, -1, 4,-1,'Beacon of Light', 'Aura::HandleAuraDummy'); /* will outdated in 3.2.x */
|
(53563,-1, -1, -1, -1, -1, -1, -1, 23,-1,'Beacon of Light', 'Aura::HandlePeriodicTriggerSpell'),
|
||||||
|
(53563,-1, -1, -1, -1, -1, -1, -1, 23,-1,'Beacon of Light', 'Unit::HandleDummyAuraProc');
|
||||||
|
|
|
||||||
|
|
@ -2145,6 +2145,11 @@ void Aura::TriggerSpell()
|
||||||
case 33525:
|
case 33525:
|
||||||
target->CastSpell(target, trigger_spell_id, true);
|
target->CastSpell(target, trigger_spell_id, true);
|
||||||
return;
|
return;
|
||||||
|
// Beacon of Light
|
||||||
|
case 53563:
|
||||||
|
// original caster must be target (beacon)
|
||||||
|
m_target->CastSpell(m_target,trigger_spell_id,true,NULL,this,m_target->GetGUID());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2451,9 +2456,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SPELLFAMILY_MAGE:
|
case SPELLFAMILY_MAGE:
|
||||||
{
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case SPELLFAMILY_PRIEST:
|
case SPELLFAMILY_PRIEST:
|
||||||
{
|
{
|
||||||
// Pain and Suffering
|
// Pain and Suffering
|
||||||
|
|
@ -2477,19 +2480,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SPELLFAMILY_PALADIN:
|
case SPELLFAMILY_PALADIN:
|
||||||
{
|
|
||||||
// Beacon of Light
|
|
||||||
if (GetId() == 53563)
|
|
||||||
{
|
|
||||||
if(apply)
|
|
||||||
// original caster must be target (beacon)
|
|
||||||
m_target->CastSpell(m_target,53651,true,NULL,this,m_target->GetGUID());
|
|
||||||
else
|
|
||||||
m_target->RemoveAurasByCasterSpell(53651,m_target->GetGUID());
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case SPELLFAMILY_DRUID:
|
case SPELLFAMILY_DRUID:
|
||||||
{
|
{
|
||||||
switch(GetId())
|
switch(GetId())
|
||||||
|
|
|
||||||
|
|
@ -5850,7 +5850,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
||||||
|
|
||||||
// find caster main aura at beacon
|
// find caster main aura at beacon
|
||||||
Aura* dummy = NULL;
|
Aura* dummy = NULL;
|
||||||
Unit::AuraList const& baa = beacon->GetAurasByType(SPELL_AURA_DUMMY);
|
Unit::AuraList const& baa = beacon->GetAurasByType(SPELL_AURA_PERIODIC_TRIGGER_SPELL);
|
||||||
for(Unit::AuraList::const_iterator i = baa.begin(); i != baa.end(); ++i)
|
for(Unit::AuraList::const_iterator i = baa.begin(); i != baa.end(); ++i)
|
||||||
{
|
{
|
||||||
if ((*i)->GetId() == 53563 && (*i)->GetCasterGUID() == pVictim->GetGUID())
|
if ((*i)->GetId() == 53563 && (*i)->GetCasterGUID() == pVictim->GetGUID())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue