Core/Spells, DB/Conditions: convert checkcast cpp to conditions for spell 52264 (deliver stolen horse)
This commit is contained in:
@@ -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)");
|
||||||
@@ -4992,11 +4992,6 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||||||
if (!unit || !unit->HasAura(17743))
|
if (!unit || !unit->HasAura(17743))
|
||||||
return SPELL_FAILED_BAD_TARGETS;
|
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
|
else if (m_spellInfo->Id == 31789) // Righteous Defense
|
||||||
{
|
{
|
||||||
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||||
|
|||||||
Reference in New Issue
Block a user