aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQAston <none@none>2009-08-17 12:52:11 +0200
committerQAston <none@none>2009-08-17 12:52:11 +0200
commit46277fa552454efd19ee0f722a4c977994f9544f (patch)
tree1d638ffa63fe62c1ef196856345d1e2a46631aa1
parent609b134996ef51cebf39f38151d6b4706d0f0b87 (diff)
*Fix for spell used by cooking pot for quest Super Hot Stew(43723) - by simon.
--HG-- branch : trunk
-rw-r--r--src/game/SpellEffects.cpp33
1 files changed, 13 insertions, 20 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index f805c7b2ac8..095cae6647e 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -669,23 +669,6 @@ void Spell::EffectDummy(uint32 i)
m_caster->DealDamage(casttarget, damage, NULL, SPELL_DIRECT_DAMAGE, SPELL_SCHOOL_MASK_ARCANE, spellInfo, false);
}
}
- // Demon Broiled Surprise
- case 43723:
- {
- if (!unitTarget || unitTarget->isAlive() || unitTarget->GetTypeId() != TYPEID_UNIT ||
- ((Creature*)unitTarget)->isPet()) return;
-
- Player *player = (Player*)m_caster;
-
- if (!player) return;
-
- player->CastSpell(unitTarget, 43753, true);
-
- if (player->GetQuestStatus(11379) == QUEST_STATUS_INCOMPLETE && unitTarget->GetEntry() == 19973)
- player->CastedCreatureOrGO(19973, unitTarget->GetGUID(), 43723);
-
- return;
- }
case 8063: // Deviate Fish
{
if(m_caster->GetTypeId() != TYPEID_PLAYER)
@@ -1068,16 +1051,26 @@ void Spell::EffectDummy(uint32 i)
return;
}
// Demon Broiled Surprise
- /* FIX ME: Required for correct work implementing implicit target 7 (in pair (22,7))
case 43723:
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)
return;
- ((Player*)m_caster)->CastSpell(unitTarget, 43753, true);
+ Player *player = (Player*)m_caster;
+
+ if (player && player->GetQuestStatus(11379) == QUEST_STATUS_INCOMPLETE)
+ {
+ Creature *creature = player->FindNearestCreature(19973, 10, false);
+ if (!creature)
+ {
+ SendCastResult(SPELL_FAILED_NOT_HERE);
+ return;
+ }
+
+ player->CastSpell(player, 43753, false);
+ }
return;
}
- */
case 44875: // Complete Raptor Capture
{
if(!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)