This commit is contained in:
@@ -24,6 +24,16 @@ public class Infestation : Script, IScriptOnSecondaryEffect
|
||||
{
|
||||
turns = 5;
|
||||
}
|
||||
target.Volatile.Add(new InfestationEffect(target, turns));
|
||||
|
||||
var args = new CustomTriggers.ModifyBindArgs(move)
|
||||
{
|
||||
Duration = turns,
|
||||
DamagePercent = 1 / 8f,
|
||||
};
|
||||
move.User.RunScriptHook<IScriptCustomTrigger>(x => x.CustomTrigger(CustomTriggers.ModifyBind, args));
|
||||
var bindTurns = args.Duration;
|
||||
var bindDamage = args.DamagePercent;
|
||||
|
||||
target.Volatile.Add(new InfestationEffect(target, bindTurns, bindDamage));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user