mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[7287] Remove wrong implementation for spell 37573 dummy effect. It better implement in scripts anyway.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
d47ab7e032
commit
58f2c540bf
2 changed files with 1 additions and 31 deletions
|
|
@ -1025,36 +1025,6 @@ void Spell::EffectDummy(uint32 i)
|
||||||
m_caster->CastSpell(m_caster,42337,true,NULL);
|
m_caster->CastSpell(m_caster,42337,true,NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
case 37573: //Temporal Phase Modulator
|
|
||||||
{
|
|
||||||
if(!unitTarget)
|
|
||||||
return;
|
|
||||||
|
|
||||||
TemporarySummon* tempSummon = dynamic_cast<TemporarySummon*>(unitTarget);
|
|
||||||
if(!tempSummon)
|
|
||||||
return;
|
|
||||||
|
|
||||||
uint32 health = tempSummon->GetHealth();
|
|
||||||
const uint32 entry_list[6] = {21821, 21820, 21817};
|
|
||||||
|
|
||||||
float x = tempSummon->GetPositionX();
|
|
||||||
float y = tempSummon->GetPositionY();
|
|
||||||
float z = tempSummon->GetPositionZ();
|
|
||||||
float o = tempSummon->GetOrientation();
|
|
||||||
|
|
||||||
tempSummon->UnSummon();
|
|
||||||
|
|
||||||
Creature* pCreature = m_caster->SummonCreature(entry_list[urand(0, 2)], x, y, z, o,TEMPSUMMON_TIMED_OR_DEAD_DESPAWN,180000);
|
|
||||||
if (!pCreature)
|
|
||||||
return;
|
|
||||||
|
|
||||||
pCreature->SetHealth(health);
|
|
||||||
|
|
||||||
if(pCreature->AI())
|
|
||||||
pCreature->AI()->AttackStart(m_caster);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
case 34665: //Administer Antidote
|
case 34665: //Administer Antidote
|
||||||
{
|
{
|
||||||
if(!unitTarget || m_caster->GetTypeId() != TYPEID_PLAYER )
|
if(!unitTarget || m_caster->GetTypeId() != TYPEID_PLAYER )
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7286"
|
#define REVISION_NR "7287"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue