mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[9025] Implement talent 63373 and ranks.
Idea with AddTriggeredSpell use suggested by darkstalker. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
aeaa5026f5
commit
0c636c6e3e
6 changed files with 30 additions and 4 deletions
|
|
@ -6594,7 +6594,25 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
|||
}
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
// Frozen Power
|
||||
if (dummySpell->SpellIconID == 3780)
|
||||
{
|
||||
Unit *caster = triggeredByAura->GetCaster();
|
||||
|
||||
if (!procSpell || !caster)
|
||||
return false;
|
||||
|
||||
float distance = caster->GetDistance(pVictim);
|
||||
int32 chance = triggerAmount;
|
||||
|
||||
if (distance < 15.0f || !roll_chance_i(chance))
|
||||
return false;
|
||||
|
||||
// make triggered cast apply after current damage spell processing for prevent remove by it
|
||||
if(Spell* spell = GetCurrentSpell(CURRENT_GENERIC_SPELL))
|
||||
spell->AddTriggeredSpell(63685);
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue