mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11403] Adjust dummy aura of spell 51329, apply/remove only expected flags.
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
3d90d921cc
commit
4ca4118d5a
2 changed files with 22 additions and 2 deletions
|
|
@ -2563,7 +2563,6 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
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
|
||||
|
|
@ -2613,6 +2612,27 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
}
|
||||
return;
|
||||
}
|
||||
case 51329: // Feign Death
|
||||
{
|
||||
// no bytes2 feign death flag nor any dynamic flag dead
|
||||
if (target->GetTypeId() == TYPEID_UNIT)
|
||||
{
|
||||
if (apply)
|
||||
{
|
||||
// The aura does not have any visual effect with only this flag set, but expected.
|
||||
target->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_UNK_29);
|
||||
// Apparently, either of the ones with this aura appear "dead" in any way,
|
||||
// unit state stunned (from effect 1) are possibly sufficient.
|
||||
target->addUnitState(UNIT_STAT_DIED);
|
||||
}
|
||||
else
|
||||
{
|
||||
target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_UNK_29);
|
||||
target->clearUnitState(UNIT_STAT_DIED);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
case 40133: //Summon Fire Elemental
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11402"
|
||||
#define REVISION_NR "11403"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue