From 600be12fcdb40591ebd55a57d8d5a3610b2d5dc6 Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Mon, 22 Feb 2010 16:47:55 +0100 Subject: [PATCH] [9431] Remove dummy effect (old code and wrong) of spell 34665 Let script handle dummy effect like expected for this type. Signed-off-by: NoFantasy --- src/game/SpellEffects.cpp | 26 -------------------------- src/shared/revision_nr.h | 2 +- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 6ea34eb70ee..82da103f77a 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1089,32 +1089,6 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) m_caster->CastSpell(m_caster, spell_id, true, NULL); return; } - case 34665: //Administer Antidote - { - if (!unitTarget || m_caster->GetTypeId() != TYPEID_PLAYER ) - return; - - // Spell has scriptable target but for sure. - if (unitTarget->GetTypeId() != TYPEID_UNIT) - return; - - uint32 health = unitTarget->GetHealth(); - float x, y, z, o; - - unitTarget->GetPosition(x, y, z); - o = unitTarget->GetOrientation(); - ((Creature*)unitTarget)->ForcedDespawn(); - - if (Creature* summon = m_caster->SummonCreature(16992, x, y, z, o,TEMPSUMMON_TIMED_OR_DEAD_DESPAWN,180000)) - { - summon->SetHealth(health); - ((Player*)m_caster)->RewardPlayerAndGroupAtEvent(16992, summon); - - if (summon->AI()) - summon->AI()->AttackStart(m_caster); - } - return; - } case 35745: // Socrethar's Stone { uint32 spell_id; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 36500eba30b..2648b82f6b8 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9430" + #define REVISION_NR "9431" #endif // __REVISION_NR_H__