aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKandera <KanderaDev@gmail.com>2012-05-18 12:09:35 -0400
committerKandera <KanderaDev@gmail.com>2012-05-18 12:09:35 -0400
commit01b2bf80575d1a115f88928bf7c4e17ba573c890 (patch)
tree44ae35af92dce4756e1946088a735efd6d7b275b
parentedf1de6d936b531b05d3384f156b8cc15448313f (diff)
Core/Spells, DB/Conditions: convert checkcast cpp to conditions for spell 52264 (deliver stolen horse)
-rw-r--r--sql/updates/world/2012_05_18_00_world_conditions.sql3
-rwxr-xr-xsrc/server/game/Spells/Spell.cpp5
2 files changed, 3 insertions, 5 deletions
diff --git a/sql/updates/world/2012_05_18_00_world_conditions.sql b/sql/updates/world/2012_05_18_00_world_conditions.sql
new file mode 100644
index 00000000000..a1de19ced35
--- /dev/null
+++ b/sql/updates/world/2012_05_18_00_world_conditions.sql
@@ -0,0 +1,3 @@
+DELETE FROM `conditions` WHERE `SourceEntry` = 52264;
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
+(13,0,52264,0,0,29,0,28653,5,0,0,97,NULL,"Creature conditions for spell 52264 (Deliver stolen horse)");
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index b27326fce59..ae9f68f594c 100755
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -4992,11 +4992,6 @@ SpellCastResult Spell::CheckCast(bool strict)
if (!unit || !unit->HasAura(17743))
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;
- }
else if (m_spellInfo->Id == 31789) // Righteous Defense
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)