This commit is contained in:
@@ -14,7 +14,7 @@ public class EvolutionItem : ItemScript
|
||||
public override bool IsItemUsable => true;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool RequiresTarget => true;
|
||||
public override ItemTargetType TargetType => ItemTargetType.OwnPokemon;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool IsTargetValid(IPokemon target)
|
||||
|
||||
@@ -14,7 +14,7 @@ public class HealingItem : ItemScript
|
||||
public override bool IsItemUsable => true;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool RequiresTarget => true;
|
||||
public override ItemTargetType TargetType => ItemTargetType.OwnPokemon;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void OnInitialize(IReadOnlyDictionary<StringKey, object?>? parameters)
|
||||
|
||||
@@ -20,6 +20,7 @@ public class BugBite : Script, IScriptOnSecondaryEffect
|
||||
}
|
||||
|
||||
_ = target.ForceSetHeldItem(null);
|
||||
targetHeldItem.RunItemScript(battleData.Battle.Library.ScriptResolver, user, move.Battle.EventHook);
|
||||
targetHeldItem.RunItemScript(battleData.Battle.Library.ScriptResolver, user, user, battleData.Battle,
|
||||
move.Battle.EventHook);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user