diff options
| author | megamage <none@none> | 2009-08-17 15:54:39 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-17 15:54:39 -0500 |
| commit | 6a9693a1e470d8460c37b9159a878ea3c87913ea (patch) | |
| tree | d52f70b3bf7eb29868cb29f1129f3db6b81ac1f4 /src/game/Unit.cpp | |
| parent | 168a9869500cc4cfd884090e21f47a59464ad2d3 (diff) | |
[8369] Some step back in triggered effect caster selection. Author: VladimirMangos
(I do not know what spells this will fix)
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
| -rw-r--r-- | src/game/Unit.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 57d38054df2..a5d2acfd008 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -906,7 +906,7 @@ void Unit::CastSpell(Unit* Victim,SpellEntry const *spellInfo, bool triggered, I //if(targetMask & (TARGET_FLAG_UNIT|TARGET_FLAG_UNK2)) for(uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i) { - if(spellmgr.SpellTargetType[spellInfo->EffectImplicitTargetA[i]] == TARGET_TYPE_UNIT_TARGET) + if(SpellTargetType[spellInfo->EffectImplicitTargetA[i]] == TARGET_TYPE_UNIT_TARGET) { /*SpellRangeEntry const* srange = sSpellRangeStore.LookupEntry(spellInfo->rangeIndex); if(srange && GetSpellMaxRange(srange) == 0.0f) @@ -978,7 +978,7 @@ void Unit::CastCustomSpell(uint32 spellId, CustomSpellValues const &value, Unit* //check unit target for(uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i) { - if(spellmgr.SpellTargetType[spellInfo->EffectImplicitTargetA[i]] == TARGET_TYPE_UNIT_TARGET) + if(SpellTargetType[spellInfo->EffectImplicitTargetA[i]] == TARGET_TYPE_UNIT_TARGET) { if(!Victim) { @@ -6076,6 +6076,10 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger // Judgements of the Wise if (dummySpell->SpellIconID == 3017) { + //Mangos code, do not know if we need it + // triggered only at casted Judgement spells, not at additional Judgement effects + //if(!procSpell || procSpell->Category != 1210) + // return; target = this; triggered_spell_id = 31930; // replenishment @@ -12181,7 +12185,7 @@ void CharmInfo::InitCharmCreateSpells() { bool autocast = false; for(uint32 i = 0; i < MAX_SPELL_EFFECTS && !autocast; ++i) - if(spellmgr.SpellTargetType[spellInfo->EffectImplicitTargetA[i]] == TARGET_TYPE_UNIT_TARGET) + if(SpellTargetType[spellInfo->EffectImplicitTargetA[i]] == TARGET_TYPE_UNIT_TARGET) autocast = true; if(autocast) |
