diff options
author | QAston <none@none> | 2009-06-06 08:27:36 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-06-06 08:27:36 +0200 |
commit | 39548d6822ce2a8cea49e4467f8329335aa0d85d (patch) | |
tree | ca1055ea31b1b8b994c693ab713626a3d00c405c /src/game/Unit.cpp | |
parent | 00582cf9d4bebbf812f2cccb14be8dce288c2f07 (diff) |
*Update spellmod system
*Implement SPELL_ATTR_EX6_IGNORE_CASTER_AURAS
*Fix some bugs with traps proc flags
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 914842ffab8..e6caa000532 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7568,7 +7568,7 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig case 56453: { // Proc only from trap activation (from periodic proc another aura of this spell) - if (!(procFlags & PROC_FLAG_ON_TRAP_ACTIVATION) || !roll_chance_i(triggerAmount)) + if (!(procFlags & PROC_FLAG_ON_TRAP_ACTIVATION)) return false; break; } @@ -11065,7 +11065,7 @@ int32 Unit::ModSpellDuration(SpellEntry const* spellProto, Unit const* target, i return duration>0 ? duration : 0; } -void Unit::ModSpellCastTime(SpellEntry const* spellProto, int32 & castTime, Spell const * spell) +void Unit::ModSpellCastTime(SpellEntry const* spellProto, int32 & castTime, Spell * spell) { if (!spellProto || castTime<0) return; @@ -12359,6 +12359,10 @@ void Unit::ProcDamageAndSpellFor( bool isVictim, Unit * pTarget, uint32 procFlag if (triggeredByAura->GetCasterGUID() != pTarget->GetGUID()) continue; break; + /*case SPELL_AURA_ADD_FLAT_MODIFIER: + case SPELL_AURA_ADD_PCT_MODIFIER: + // HandleSpellModAuraProc + break;*/ default: // nothing do, just charges counter break; |