This commit is contained in:
@@ -2672,6 +2672,7 @@
|
||||
{
|
||||
"name": "hyper_potion",
|
||||
"itemType": "Medicine",
|
||||
"battleType": "Healing",
|
||||
"flags": [],
|
||||
"price": 1500,
|
||||
"additionalData": {
|
||||
@@ -3549,6 +3550,7 @@
|
||||
{
|
||||
"name": "max_potion",
|
||||
"itemType": "Medicine",
|
||||
"battleType": "Healing",
|
||||
"flags": [],
|
||||
"price": 2500,
|
||||
"additionalData": {
|
||||
@@ -3567,6 +3569,7 @@
|
||||
{
|
||||
"name": "max_revive",
|
||||
"itemType": "Medicine",
|
||||
"battleType": "Healing",
|
||||
"flags": [],
|
||||
"price": 4000,
|
||||
"additionalData": {
|
||||
@@ -4584,6 +4587,7 @@
|
||||
{
|
||||
"name": "potion",
|
||||
"itemType": "Medicine",
|
||||
"battleType": "Healing",
|
||||
"flags": [],
|
||||
"price": 200,
|
||||
"additionalData": {
|
||||
@@ -5230,6 +5234,7 @@
|
||||
{
|
||||
"name": "revival_herb",
|
||||
"itemType": "Medicine",
|
||||
"battleType": "Healing",
|
||||
"flags": [],
|
||||
"price": 2800,
|
||||
"additionalData": {
|
||||
@@ -5239,6 +5244,7 @@
|
||||
{
|
||||
"name": "revive",
|
||||
"itemType": "Medicine",
|
||||
"battleType": "Healing",
|
||||
"flags": [],
|
||||
"price": 2000,
|
||||
"additionalData": {
|
||||
@@ -6185,6 +6191,7 @@
|
||||
{
|
||||
"name": "super_potion",
|
||||
"itemType": "Medicine",
|
||||
"battleType": "Healing",
|
||||
"flags": [],
|
||||
"price": 700,
|
||||
"additionalData": {
|
||||
|
||||
@@ -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