Procs
A chance on each hit behind an internal cooldown.
v2's cookbook, procs (G290-G291): a chance on each hit behind an internal cooldown, held by the enemy struck in one case and by the wielder in the other; a failed roll starts no cooldown, and the wielder's survives its death.
1
# v2's cookbook, procs (G290-G291): a chance on each hit behind an internal cooldown, held by the enemy struck in one2
# case and by the wielder in the other; a failed roll starts no cooldown, and the wielder's survives its death.4
rate 605
stat MaxHealth6
stat Power7
pool Health max MaxHealth8
damage Health9
tags Melee Nature Buff Cooldown10
event Died12
archetype Warrior13
base MaxHealth 10014
base Power 1015
full Health16
has Mortal17
grants Strike19
archetype Ogre20
base MaxHealth 100021
base Power 1022
full Health23
grants Strike25
ability Strike26
tags Melee27
target one28
deal holder.Power Melee to target30
# ---- G290 Thunderfury: each melee hit has a 30% chance to call a 30 bolt on the one struck, which then can't be bolted31
# again for 6 seconds; another can, and a roll that fails starts nothing ----33
effect Thunderfury34
after Damage by holder having Melee when not has(event.subject, ThunderICD) and chance(30%)35
deal 30 Nature to event.subject36
apply ThunderICD to event.subject38
effect ThunderICD39
tags Cooldown40
stack refresh per source41
lasts 6s43
# ---- G291 a weapon's rage: a 25% chance a hit enrages its wielder, half again on its blows for 8 seconds, twice at44
# most, no more than one proc in 4 seconds; the wielder holds that cooldown, and its death doesn't take it ----46
effect Raging47
after Damage by holder when not has(holder, RageICD) and chance(25%)48
apply Enraged49
apply RageICD51
effect Enraged52
tags Buff53
stack add max 2 then refresh54
lasts 8s55
Power + 50%57
effect RageICD58
tags Cooldown59
lasts 4s61
effect Mortal62
after Depleted Health of holder63
raise Died of holder64
remove all Buff65
heal holder.MaxHealth to holder1
catalog procs.ledger2
row G290 Thunderfury ThunderICD Strike Warrior Ogre3
row G291 Raging Enraged RageICD Mortal Strike Warrior Ogre5
play G290 "Thunderfury's bolt, 30, falls on an ogre struck; struck again in 6 seconds it can't be bolted, though another can at once; a miss starts no cooldown"6
seed 6 # a run's: the draws under it fall as the play says7
make w Warrior8
apply Thunderfury to w9
make a Ogre10
make b Ogre11
act w Strike at a12
expect a.Health = 960 from a run: under seed 6 the 30% roll on the first strike succeeds, so G290's bolt of 30 follows the content's strike of 10 off the ogre's 1000: 1000 - 10 - 3013
expect a has ThunderICD14
act w Strike at a15
expect a.Health = 950 from a run: under seed 6 the first strike's roll bolted ogre a, so the second, inside G290's 6 seconds, lands only the content's strike of 10: 960 - 1016
save17
act w Strike at b18
expect b.Health = 990 from a run: under seed 6 the 30% roll on the first strike at ogre b fails, so it takes only the content's strike of 10: 1000 - 1019
expect b lacks ThunderICD20
act w Strike at b21
expect b.Health = 950 from a run: under seed 6 the 30% roll on the second strike at ogre b succeeds, and no failed roll started a cooldown, so G290's 30 follows the strike of 10: 990 - 10 - 3023
play G291 "A hit enrages the warrior, its strike of 10 then 15, and for 4 seconds no more rage comes; killed and got up again, the rage is gone and the cooldown kept"24
seed 63 # a run's: the draws under it fall as the play says25
make w Warrior26
apply Raging to w27
make o Ogre28
act w Strike at o29
expect w has Enraged 1 from a run: under seed 63 the warrior's first chance draw falls within G291's 25%, so one stack of enrage30
expect w has RageICD31
act w Strike at o32
expect o.Health = 975 from a run: under seed 63 the first strike enrages, so the second is the content's 10 made 15 by G291's 50 percent: 1000 - 10 - 1533
expect w has Enraged 1 from G291: "at most one proc"34
save35
deal 100 to w36
expect w lacks Enraged37
expect w has RageICD38
expect w.Health = 100 from content: G291 says nothing of the revive's health; the content heals the dead warrior by its maximum of 10039
act w Strike at o40
expect w lacks Enraged41
advance 4s42
act w Strike at o43
expect w has Enraged 1 from a run: under seed 63 the warrior's next draw, on the strike as G291's 4 seconds run out, falls within 25%, the earlier stack gone with the death: one stackWhat a change to Health meets
Every rule in this recipe a change to Health passes through, in order. Each line is a link to the rule.
Health: a change to it meets 2 rules, in this order after it lands Thunderfury: Damage by holder having Melee when not has(event.subject, ThunderICD) and chance(30%) (content/cookbook/procs.ledger:34) hears what landed; held by no archetype and applied by no content: the game or a play puts it on Raging: Damage by holder when not has(holder, RageICD) and chance(25%) (content/cookbook/procs.ledger:47) hears what landed; held by no archetype and applied by no content: the game or a play puts it on no archetype lacks a layer its like hold
Run it yourself
ledger check content/cookbook/procs.ledger content/cookbook/procs.play
ledger play content/cookbook/procs.play
ledger pipeline content/cookbook/procs.ledger Health