mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Work under spell mods
* Add support > 64 bit spellFamily mask
* Remove not used fields in SpellModifier
* Remove not used (and not correct work vs charges) GetTotalFlatMods, GetTotalPctMods
* Use DBC based data for spell_affect
* More better work SPELL_AURA_ADD_TARGET_TRIGGER aura
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
916bd178a2
commit
9b842b6fdc
13 changed files with 145 additions and 127 deletions
|
|
@ -1524,10 +1524,8 @@ void Spell::EffectDummy(uint32 i)
|
|||
mod->value = -50;
|
||||
mod->type = SPELLMOD_PCT;
|
||||
mod->spellId = m_spellInfo->Id;
|
||||
mod->effectId = i;
|
||||
mod->lastAffected = NULL;
|
||||
mod->mask = 0x0000020000000000LL;
|
||||
mod->charges = 0;
|
||||
mod->mask2= 0LL;
|
||||
|
||||
((Player*)m_caster)->AddSpellMod(mod, true);
|
||||
m_caster->CastSpell(unitTarget,spell_proto,true,NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue