mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
[10467] Implement proper triggering for spell 34477, 57934
Signed-off-by: VladimirMangos <vladimir@getmangos.com> Also fixed charges amount (1) for main spell auras.
This commit is contained in:
parent
4d30b464b4
commit
7785daf2f9
3 changed files with 47 additions and 9 deletions
|
|
@ -2214,14 +2214,6 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
|
||||
return;
|
||||
}
|
||||
case 34477: // Misdirection, main spell
|
||||
case 57934: // Tricks of the Trade, main spell
|
||||
{
|
||||
if (m_removeMode != AURA_REMOVE_BY_DEFAULT) // used for direct in code aura removes
|
||||
if (Unit* pCaster = GetCaster())
|
||||
pCaster->getHostileRefManager().ResetThreatRedirection();
|
||||
return;
|
||||
}
|
||||
case 35079: // Misdirection, triggered buff
|
||||
case 59628: // Tricks of the Trade, triggered buff
|
||||
case 59665: // Vigilance, redirection spell
|
||||
|
|
@ -2625,7 +2617,39 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_ROGUE:
|
||||
switch(GetId())
|
||||
{
|
||||
case 57934: // Tricks of the Trade, main spell
|
||||
{
|
||||
if (apply)
|
||||
GetHolder()->SetAuraCharges(1); // not have proper chnarges set in spell data
|
||||
else
|
||||
{
|
||||
// used for direct in code aura removes and rpoc event charges expire
|
||||
if (m_removeMode != AURA_REMOVE_BY_DEFAULT)
|
||||
target->getHostileRefManager().ResetThreatRedirection();
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case SPELLFAMILY_HUNTER:
|
||||
switch(GetId())
|
||||
{
|
||||
case 34477: // Misdirection, main spell
|
||||
{
|
||||
if (apply)
|
||||
GetHolder()->SetAuraCharges(1); // not have proper charges set in spell data
|
||||
else
|
||||
{
|
||||
// used for direct in code aura removes and rpoc event charges expire
|
||||
if (m_removeMode != AURA_REMOVE_BY_DEFAULT)
|
||||
target->getHostileRefManager().ResetThreatRedirection();
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case SPELLFAMILY_PALADIN:
|
||||
switch(GetId())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue