Skip to content

Commit

Permalink
[10890] Merge apply/remove cases for recently added dummy auras.
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirMangos committed Dec 18, 2010
1 parent 348b1fa commit 0cde888
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
40 changes: 16 additions & 24 deletions src/game/SpellAuras.cpp
Expand Up @@ -2015,21 +2015,9 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
if (roll_chance_i(20)) // backfire stun
target->CastSpell(target, 51581, true, NULL, this);
return;
case 42515: // Jarl Beam
{
// aura animate dead (fainted) state for the duration, but we need to animate the death itself (correct way below?)
if (Unit* pCaster = GetCaster())
pCaster->SetFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_FEIGN_DEATH);

return;
}
case 43873: // Headless Horseman Laugh
target->PlayDistanceSound(11965);
return;
case 43874: // Scourge Mur'gul Camp: Force Shield Arcane Purple x3
target->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
target->addUnitState(UNIT_STAT_ROOT);
return;
case 46699: // Requires No Ammo
if (target->GetTypeId() == TYPEID_PLAYER)
// not use ammo and not allow use
Expand Down Expand Up @@ -2261,15 +2249,6 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
target->CastSpell(target, 36731, true, NULL, this);
return;
}
case 42515: // Jarl Beam
{
if (Unit* pCaster = GetCaster())
pCaster->RemoveFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_FEIGN_DEATH);

// Beam to Zelfrax
target->CastSpell(target, 42517, true);
return;
}
case 42517: // Beam to Zelfrax
{
// expecting target to be a dummy creature
Expand All @@ -2282,9 +2261,6 @@ void Aura::HandleAuraDummy(bool apply, bool Real)

return;
}
case 43874: // Scourge Mur'gul Camp: Force Shield Arcane Purple x3
target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
return;
case 44191: // Flame Strike
{
if (target->GetMap()->IsDungeon())
Expand Down Expand Up @@ -2515,6 +2491,22 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
}
return;
}
case 42515: // Jarl Beam
{
// aura animate dead (fainted) state for the duration, but we need to animate the death itself (correct way below?)
if (Unit* pCaster = GetCaster())
pCaster->ApplyModFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_FEIGN_DEATH, apply);

// Beam to Zelfrax at remove
if (!apply)
target->CastSpell(target, 42517, true);
return;
}
case 43874: // Scourge Mur'gul Camp: Force Shield Arcane Purple x3
target->ApplyModFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE, apply);
if (apply)
target->addUnitState(UNIT_STAT_ROOT);
return;
case 47178: // Plague Effect Self
target->SetFeared(apply, GetCasterGuid(), GetId());
return;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10889"
#define REVISION_NR "10890"
#endif // __REVISION_NR_H__

0 comments on commit 0cde888

Please sign in to comment.