mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[8553] removed spiritguide from code
they basicaly should *autocast 22011 *give player after gossiphello buff 2584 *port players away to another spiritguides, when they die so this can be done by a script and maybe eventai
This commit is contained in:
parent
2da82a8c68
commit
1f9b4ca4c3
12 changed files with 25 additions and 153 deletions
|
|
@ -6761,25 +6761,20 @@ void Spell::EffectSummonDemon(uint32 i)
|
|||
}
|
||||
}
|
||||
|
||||
/* There is currently no need for this effect. We handle it in BattleGround.cpp
|
||||
If we would handle the resurrection here, the spiritguide would instantly disappear as the
|
||||
player revives, and so we wouldn't see the spirit heal visual effect on the npc.
|
||||
This is why we use a half sec delay between the visual effect and the resurrection itself */
|
||||
void Spell::EffectSpiritHeal(uint32 /*i*/)
|
||||
{
|
||||
/*
|
||||
if(!unitTarget || unitTarget->isAlive())
|
||||
// TODO player can't see the heal-animation - he should respawn some ticks later
|
||||
if (!unitTarget || unitTarget->isAlive())
|
||||
return;
|
||||
if(unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
if (unitTarget->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
if(!unitTarget->IsInWorld())
|
||||
if (!unitTarget->IsInWorld())
|
||||
return;
|
||||
if (m_spellInfo->Id == 22012 && !unitTarget->HasAura(2584))
|
||||
return;
|
||||
|
||||
//m_spellInfo->EffectBasePoints[i]; == 99 (percent?)
|
||||
//((Player*)unitTarget)->setResurrect(m_caster->GetGUID(), unitTarget->GetPositionX(), unitTarget->GetPositionY(), unitTarget->GetPositionZ(), unitTarget->GetMaxHealth(), unitTarget->GetMaxPower(POWER_MANA));
|
||||
((Player*)unitTarget)->ResurrectPlayer(1.0f);
|
||||
((Player*)unitTarget)->SpawnCorpseBones();
|
||||
*/
|
||||
}
|
||||
|
||||
// remove insignia spell effect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue