mirror of
https://github.com/mangosfour/server.git
synced 2026-01-02 01:37:05 +00:00
[11024] Fixed work spell 50720
* Threat redirection correctly applied * Implemented cooldown reset part. Note: Damage redunction still not fixed. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
d35be7f4c1
commit
7d61f8470e
3 changed files with 27 additions and 9 deletions
|
|
@ -2245,7 +2245,6 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
}
|
||||
case 35079: // Misdirection, triggered buff
|
||||
case 59628: // Tricks of the Trade, triggered buff
|
||||
case 59665: // Vigilance, redirection spell
|
||||
{
|
||||
if (Unit* pCaster = GetCaster())
|
||||
pCaster->getHostileRefManager().ResetThreatRedirection();
|
||||
|
|
@ -4767,16 +4766,26 @@ void Aura::HandleAuraProcTriggerSpell(bool apply, bool Real)
|
|||
if(!Real)
|
||||
return;
|
||||
|
||||
if(apply)
|
||||
Unit *target = GetTarget();
|
||||
|
||||
switch (GetId())
|
||||
{
|
||||
// some spell have charges by functionality not have its in spell data
|
||||
switch (GetId())
|
||||
{
|
||||
case 28200: // Ascendance (Talisman of Ascendance trinket)
|
||||
case 28200: // Ascendance (Talisman of Ascendance trinket)
|
||||
if(apply)
|
||||
GetHolder()->SetAuraCharges(6);
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
break;
|
||||
case 50720: // Vigilance (threat transfering)
|
||||
if (apply)
|
||||
{
|
||||
if (Unit* caster = GetCaster())
|
||||
target->CastSpell(caster, 59665, true);
|
||||
}
|
||||
else
|
||||
target->getHostileRefManager().ResetThreatRedirection();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue