diff options
| author | Kudlaty <none@none> | 2009-07-11 02:03:20 +0200 |
|---|---|---|
| committer | Kudlaty <none@none> | 2009-07-11 02:03:20 +0200 |
| commit | a15748df6070c4fa91046934997129450a4a5067 (patch) | |
| tree | eafcac7ae05c5e38ed0da6cc793a988b30a24c7d /src/game/Spell.cpp | |
| parent | 6af0b55dd77e29ead2f9e446e652a04a456f4066 (diff) | |
Rewrite script for quest 12680
Add support for spells 52267 and 52264
Thanks to Drethek for patch
--HG--
branch : trunk
Diffstat (limited to 'src/game/Spell.cpp')
| -rw-r--r-- | src/game/Spell.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 84bd533a406..6cba36d3af1 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -4669,6 +4669,11 @@ SpellCastResult Spell::CheckCast(bool strict) if(!unit || !unit->HasAura(17743, 0)) return SPELL_FAILED_BAD_TARGETS; } + else if (m_spellInfo->Id == 52264) // Deliver Stolen Horse + { + if(!m_caster->FindNearestCreature(28653,5)) + return SPELL_FAILED_OUT_OF_RANGE; + } break; } case SPELL_EFFECT_LEARN_SPELL: |
