Eval Collection: Love Tap

mf-splash-banner

Miss Fortune’s Passive!

Love Tap is a passive state that allows the user to deal increased damage every time he attacks a NEW target. If he attacks the same target twice, the bonus damage will only be granted for the first attack since the target is already marked by Love Tap.

Requirements:

♦ YEP_BuffsStatesCore.js

Recommended:

♦ YEP_AutoPassiveStates.js

 

Use this notetag in the state’s notebox:


<Custom Battle Effect>
user._realLastTarget = -1;
</Custom Battle Effect>

<Custom Confirm Effect>
if (user._lastTargetIndex === target.index() && user._realLastTarget !== -1) {
} else {
user._realLastTarget = target.index();
value += 500;
};
</Custom Confirm Effect>

Line 9 needs adjusting! Change 500 to anything that you want! In my case, Love Tap grants +500 additional damage. You can use the variables “user” and “target” for the respective entities.

Advertisements

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