Eval Collection: Silver Bolts (League of Legends)


Silver Bolts is an ability of Vayne from League of Legends. It’s a passive ability that will deal a percentage of the target’s maximum health as bonus damage after hitting the same enemy 3 times in a row.



♦ YEP_BuffsStatesCore.js

♦ YEP_AutoPassiveStates.js



› Create your Silver bolts passive state.
› Add the <Passive State: x> notetag to the skill or actor that you want the passive state attached to.
› Add the following code to your Silver bolts passive state:

<Custom Confirm Effect>
// Only go on if the attack deals damage.
if (value > 0) {
// Check if the Silver Bolts variable exists. If it does not, create it.
target._silverBolts = target._silverBolts || 0;
// If the target is the same target as the one that the attacker attacked last ...
if (user._lastTargetIndex === target.index()) {
// ... increase stacks by 1.
target._silverBolts += 1;
// ... else ...
} else {
// ... reset the stacks to 1.
target._silverBolts = 1;
// If the target has 3 stacks...
if (target._silverBolts >= 3) {
// ...set stacks to 0.
target._silverBolts = 0;
// ...and calculate the bonus damage. Default: 10% of target's maximum HP.
dmg = Math.ceil(target.mhp * 0.1);
// Add the calculated damage.
value += dmg;
</Custom Confirm Effect>

You can change the bonus damage in Line 20.


2 thoughts on “Eval Collection: Silver Bolts (League of Legends)

Write a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s