mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
[9489] No reason have different code for apply/remove for this spells.
This commit is contained in:
parent
5df9eaff8b
commit
7550c31138
2 changed files with 28 additions and 51 deletions
|
|
@ -2268,33 +2268,6 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
if (Unit* caster = GetCaster())
|
if (Unit* caster = GetCaster())
|
||||||
caster->CastSpell(caster, 13138, true, NULL, this);
|
caster->CastSpell(caster, 13138, true, NULL, this);
|
||||||
return;
|
return;
|
||||||
case 29266: // Permanent Feign Death
|
|
||||||
case 31261: // Permanent Feign Death (Root)
|
|
||||||
case 37493: // Feign Death
|
|
||||||
case 51329: // Feign Death
|
|
||||||
case 52593: // Bloated Abomination Feign Death
|
|
||||||
case 55795: // Falling Dragon Feign Death
|
|
||||||
case 57626: // Feign Death
|
|
||||||
case 57685: // Permanent Feign Death
|
|
||||||
case 58768: // Permanent Feign Death (Freeze Jumpend)
|
|
||||||
case 58806: // Permanent Feign Death (Drowned Anim)
|
|
||||||
case 58951: // Permanent Feign Death
|
|
||||||
case 64461: // Permanent Feign Death (No Anim) (Root)
|
|
||||||
case 65985: // Permanent Feign Death (Root Silence Pacify)
|
|
||||||
case 70630: // Frozen Aftermath - Feign Death
|
|
||||||
case 70592: // Permanent Feign Death
|
|
||||||
case 70628: // Permanent Feign Death
|
|
||||||
case 71598: // Feign Death
|
|
||||||
{
|
|
||||||
// Unclear what the difference really is between them.
|
|
||||||
// Some has effect1 that makes the difference, however not all.
|
|
||||||
// Some appear to be used depending on creature location, in water, at solid ground, in air/suspended, etc
|
|
||||||
// For now, just handle all the same way
|
|
||||||
if (m_target->GetTypeId() == TYPEID_UNIT)
|
|
||||||
m_target->SetFeignDeath(true);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
case 35356: // Spawn Feign Death
|
case 35356: // Spawn Feign Death
|
||||||
case 35357: // Spawn Feign Death
|
case 35357: // Spawn Feign Death
|
||||||
case 42557: // Feign Death
|
case 42557: // Feign Death
|
||||||
|
|
@ -2475,29 +2448,6 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
m_target->CastSpell(m_target, 28240, true, NULL, this);
|
m_target->CastSpell(m_target, 28240, true, NULL, this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
case 29266: // Permanent Feign Death
|
|
||||||
case 31261: // Permanent Feign Death (Root)
|
|
||||||
case 37493: // Feign Death
|
|
||||||
case 51329: // Feign Death
|
|
||||||
case 52593: // Bloated Abomination Feign Death
|
|
||||||
case 55795: // Falling Dragon Feign Death
|
|
||||||
case 57626: // Feign Death
|
|
||||||
case 57685: // Permanent Feign Death
|
|
||||||
case 58768: // Permanent Feign Death (Freeze Jumpend)
|
|
||||||
case 58806: // Permanent Feign Death (Drowned Anim)
|
|
||||||
case 58951: // Permanent Feign Death
|
|
||||||
case 64461: // Permanent Feign Death (No Anim) (Root)
|
|
||||||
case 65985: // Permanent Feign Death (Root Silence Pacify)
|
|
||||||
case 70630: // Frozen Aftermath - Feign Death
|
|
||||||
case 70592: // Permanent Feign Death
|
|
||||||
case 70628: // Permanent Feign Death
|
|
||||||
case 71598: // Feign Death
|
|
||||||
{
|
|
||||||
if (m_target->GetTypeId() == TYPEID_UNIT)
|
|
||||||
m_target->SetFeignDeath(false);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
case 35356: // Spawn Feign Death
|
case 35356: // Spawn Feign Death
|
||||||
case 35357: // Spawn Feign Death
|
case 35357: // Spawn Feign Death
|
||||||
case 42557: // Feign Death
|
case 42557: // Feign Death
|
||||||
|
|
@ -2618,6 +2568,33 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
m_target->RemoveAurasDueToSpell(spellId);
|
m_target->RemoveAurasDueToSpell(spellId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
case 29266: // Permanent Feign Death
|
||||||
|
case 31261: // Permanent Feign Death (Root)
|
||||||
|
case 37493: // Feign Death
|
||||||
|
case 51329: // Feign Death
|
||||||
|
case 52593: // Bloated Abomination Feign Death
|
||||||
|
case 55795: // Falling Dragon Feign Death
|
||||||
|
case 57626: // Feign Death
|
||||||
|
case 57685: // Permanent Feign Death
|
||||||
|
case 58768: // Permanent Feign Death (Freeze Jumpend)
|
||||||
|
case 58806: // Permanent Feign Death (Drowned Anim)
|
||||||
|
case 58951: // Permanent Feign Death
|
||||||
|
case 64461: // Permanent Feign Death (No Anim) (Root)
|
||||||
|
case 65985: // Permanent Feign Death (Root Silence Pacify)
|
||||||
|
case 70592: // Permanent Feign Death
|
||||||
|
case 70628: // Permanent Feign Death
|
||||||
|
case 70630: // Frozen Aftermath - Feign Death
|
||||||
|
case 71598: // Feign Death
|
||||||
|
{
|
||||||
|
// Unclear what the difference really is between them.
|
||||||
|
// Some has effect1 that makes the difference, however not all.
|
||||||
|
// Some appear to be used depending on creature location, in water, at solid ground, in air/suspended, etc
|
||||||
|
// For now, just handle all the same way
|
||||||
|
if (m_target->GetTypeId() == TYPEID_UNIT)
|
||||||
|
m_target->SetFeignDeath(apply);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
//Summon Fire Elemental
|
//Summon Fire Elemental
|
||||||
case 40133:
|
case 40133:
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9488"
|
#define REVISION_NR "9489"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue