Skip to content

Commit

Permalink
[9431] Remove dummy effect (old code and wrong) of spell 34665
Browse files Browse the repository at this point in the history
Let script handle dummy effect like expected for this type.

Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Feb 22, 2010
1 parent aeacc5c commit 600be12
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
26 changes: 0 additions & 26 deletions src/game/SpellEffects.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion 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__

0 comments on commit 600be12

Please sign in to comment.