diff options
| author | Rat <gmstreetrat@gmail.com> | 2014-12-01 20:44:06 +0100 |
|---|---|---|
| committer | Rat <gmstreetrat@gmail.com> | 2014-12-01 20:44:06 +0100 |
| commit | 16219b483d59073acd3419f8b135bba0ac99dff6 (patch) | |
| tree | f9f5b2e9c4772cc5c1dd0ec464ada6ffee8dbbfa /src/server/game/Spells/SpellInfo.cpp | |
| parent | 96bc2ce242b8e864778d7ed2456a16ccb934e355 (diff) | |
Core/Spells:
- some work on player starting spells and skills
- fixed basic spell learning
- fixed some spell related datastore loads
Diffstat (limited to 'src/server/game/Spells/SpellInfo.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellInfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index 85ad4a67d3f..8eefeae232a 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -1253,6 +1253,9 @@ bool SpellInfo::NeedsToBeTriggeredByCaster(SpellInfo const* triggeringSpell, uin SpellEffectInfoVector effects = GetEffectsForDifficulty(difficulty); for (SpellEffectInfo const* effect : effects) { + if (!effect) + continue; + if (effect->TargetA.GetTarget() != TARGET_UNIT_CASTER && effect->TargetA.GetTarget() != TARGET_DEST_CASTER && effect->TargetB.GetTarget() != TARGET_UNIT_CASTER && effect->TargetB.GetTarget() != TARGET_DEST_CASTER) { @@ -1297,6 +1300,9 @@ bool SpellInfo::IsStackableWithRanks() const SpellEffectInfoVector effects = GetEffectsForDifficulty(DIFFICULTY_NONE); for (SpellEffectInfo const* effect : effects) { + if (!effect) + continue; + switch (SpellFamilyName) { case SPELLFAMILY_PALADIN: |
