mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[10027] SPELL_AURA_ADD_TARGET_TRIGGER long time not use spellmod for work.
Drop dead code.
This commit is contained in:
parent
cf5c1c45d6
commit
ff3fb9b727
3 changed files with 2 additions and 26 deletions
|
|
@ -159,7 +159,7 @@ pAuraHandler AuraHandler[TOTAL_AURAS]=
|
|||
&Aura::HandleAuraHover, //106 SPELL_AURA_HOVER
|
||||
&Aura::HandleAddModifier, //107 SPELL_AURA_ADD_FLAT_MODIFIER
|
||||
&Aura::HandleAddModifier, //108 SPELL_AURA_ADD_PCT_MODIFIER
|
||||
&Aura::HandleAddTargetTrigger, //109 SPELL_AURA_ADD_TARGET_TRIGGER
|
||||
&Aura::HandleNoImmediateEffect, //109 SPELL_AURA_ADD_TARGET_TRIGGER
|
||||
&Aura::HandleModPowerRegenPCT, //110 SPELL_AURA_MOD_POWER_REGEN_PERCENT
|
||||
&Aura::HandleNoImmediateEffect, //111 SPELL_AURA_ADD_CASTER_HIT_TRIGGER implemented in Unit::SelectMagnetTarget
|
||||
&Aura::HandleNoImmediateEffect, //112 SPELL_AURA_OVERRIDE_CLASS_SCRIPTS implemented in diff functions.
|
||||
|
|
@ -1474,29 +1474,6 @@ void Aura::HandleAddModifier(bool apply, bool Real)
|
|||
ReapplyAffectedPassiveAuras();
|
||||
}
|
||||
|
||||
void Aura::HandleAddTargetTrigger(bool apply, bool /*Real*/)
|
||||
{
|
||||
// Use SpellModifier structure for check
|
||||
// used only fields:
|
||||
// spellId, mask, mask2
|
||||
if (apply)
|
||||
{
|
||||
SpellModifier *mod = new SpellModifier;
|
||||
mod->spellId = GetId();
|
||||
|
||||
uint32 const *ptr = m_spellProto->GetEffectSpellClassMask(m_effIndex);
|
||||
|
||||
mod->mask = (uint64)ptr[0] | (uint64)ptr[1]<<32;
|
||||
mod->mask2= ptr[2];
|
||||
m_spellmod = mod;
|
||||
}
|
||||
else
|
||||
{
|
||||
delete m_spellmod;
|
||||
m_spellmod = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void Aura::TriggerSpell()
|
||||
{
|
||||
const uint64& casterGUID = GetCasterGUID();
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@ class MANGOS_DLL_SPEC Aura
|
|||
void HandleAuraHover(bool Apply, bool Real);
|
||||
void HandleAddModifier(bool Apply, bool Real);
|
||||
|
||||
void HandleAddTargetTrigger(bool Apply, bool Real);
|
||||
void HandleAuraModStun(bool Apply, bool Real);
|
||||
void HandleModDamageDone(bool Apply, bool Real);
|
||||
void HandleAuraUntrackable(bool Apply, bool Real);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10026"
|
||||
#define REVISION_NR "10027"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue