mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 17:38:26 +00:00
Fixed defensive procs so they now only trigger once per attack round like live.
Added live like proc chance modifer based on level difference to target. "Anything above your level will receive full mod. Starting 6 levels below PC level there is a negative 10 % mod applied each level until it reaches 0 and will not proc on anything 15 levels below you or lower." Thanks to Huffin from PEQ for the parse data
This commit is contained in:
+3
-2
@@ -3399,12 +3399,13 @@ int Mob::GetSnaredAmount()
|
||||
return worst_snare;
|
||||
}
|
||||
|
||||
void Mob::TriggerDefensiveProcs(const ItemInst* weapon, Mob *on, uint16 hand, int damage)
|
||||
void Mob::TriggerDefensiveProcs(Mob *on, uint16 hand, bool FromSkillProc, int damage)
|
||||
{
|
||||
if (!on)
|
||||
return;
|
||||
|
||||
on->TryDefensiveProc(weapon, this, hand);
|
||||
if (!FromSkillProc)
|
||||
on->TryDefensiveProc(this, hand);
|
||||
|
||||
//Defensive Skill Procs
|
||||
if (damage < 0 && damage >= -4) {
|
||||
|
||||
Reference in New Issue
Block a user