mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[11404] Revert [11403] Adjust dummy aura of spell 51329.
Place spell where it belongs instead, along with other spells doing the same. Spell will add/remove the correct flags this time. git blame: Hasty research, lack of coffee, broken brain Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
4ca4118d5a
commit
b4a22a6879
2 changed files with 5 additions and 25 deletions
|
|
@ -2589,12 +2589,13 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
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
|
||||||
|
case 51329: // Feign Death
|
||||||
{
|
{
|
||||||
if (target->GetTypeId() == TYPEID_UNIT)
|
if (target->GetTypeId() == TYPEID_UNIT)
|
||||||
{
|
{
|
||||||
// Flags not set like it's done in SetFeignDeath() and apparently always applied at spawn of creature
|
// Flags not set like it's done in SetFeignDeath()
|
||||||
// All three does however have SPELL_EFFECT_SPAWN(46) as effect1
|
// UNIT_DYNFLAG_DEAD does not appear with these spells.
|
||||||
// It is possible this effect will remove some flags, and then the three here can be handled "normally"
|
// All of the spells appear to be present at spawn and not used to feign in combat or similar.
|
||||||
if (apply)
|
if (apply)
|
||||||
{
|
{
|
||||||
target->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_UNK_29);
|
target->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_UNK_29);
|
||||||
|
|
@ -2612,27 +2613,6 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||||
}
|
}
|
||||||
return;
|
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
|
case 40133: //Summon Fire Elemental
|
||||||
{
|
{
|
||||||
Unit* caster = GetCaster();
|
Unit* caster = GetCaster();
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11403"
|
#define REVISION_NR "11404"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue