mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 01:37:05 +00:00
[8552] implemented spells which can be casted while dead
i added a function IsDeathOnlySpell() which returns true if this spell can ONLY be casted while dead, so i haven't implemented all spells which could be cast while dead..
This commit is contained in:
parent
5385b385bc
commit
2da82a8c68
9 changed files with 25 additions and 11 deletions
|
|
@ -6267,7 +6267,7 @@ void Aura::HandleSchoolAbsorb(bool apply, bool Real)
|
|||
|
||||
void Aura::PeriodicTick()
|
||||
{
|
||||
if(!m_target->isAlive())
|
||||
if (!m_target->isAlive() ^ IsDeathOnlySpell(GetSpellProto()))
|
||||
return;
|
||||
|
||||
switch(m_modifier.m_auraname)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue