2018-10-26 10:03:33 +02:00
Namespace BattleSystem . Moves . Fire
Public Class Incinerate
Inherits Attack
Public Sub New ( )
'#Definitions
Me . Type = New Element ( Element . Types . Fire )
Me . ID = 510
Me . OriginalPP = 15
Me . CurrentPP = 15
Me . MaxPP = 15
Me . Power = 60
Me . Accuracy = 100
Me . Category = Categories . Special
Me . ContestCategory = ContestCategories . Tough
2022-12-04 20:11:29 +01:00
Me . Name = Localization . GetString ( " move_name_ " & Me . ID , " Incinerate " )
2018-10-26 10:03:33 +02:00
Me . Description = " The user attacks opposing Pokémon with fire. If a Pokémon is holding a certain item, such as a Berry, the item becomes burned up and unusable. "
Me . CriticalChance = 1
Me . IsHMMove = False
Me . Target = Targets . AllAdjacentFoes
Me . Priority = 0
Me . TimesToAttack = 1
'#End
'#SpecialDefinitions
Me . MakesContact = False
Me . ProtectAffected = True
Me . MagicCoatAffected = False
Me . SnatchAffected = False
Me . MirrorMoveAffected = True
Me . KingsrockAffected = True
Me . CounterAffected = False
Me . DisabledWhileGravity = False
Me . UseEffectiveness = True
Me . ImmunityAffected = True
Me . HasSecondaryEffect = True
2023-04-01 08:58:01 +02:00
Me . RemovesOwnFrozen = False
2018-10-26 10:03:33 +02:00
Me . IsHealingMove = False
Me . IsRecoilMove = False
2022-12-20 17:40:04 +01:00
2018-10-26 10:03:33 +02:00
Me . IsDamagingMove = True
Me . IsProtectMove = False
2022-12-20 17:40:04 +01:00
2018-10-26 10:03:33 +02:00
Me . IsAffectedBySubstitute = True
Me . IsOneHitKOMove = False
Me . IsWonderGuardAffected = True
'#End
Me . AIField1 = AIField . Damage
Me . AIField2 = AIField . Nothing
End Sub
Public Overrides Sub MoveHits ( own As Boolean , BattleScreen As BattleScreen )
Dim p As Pokemon = BattleScreen . OwnPokemon
Dim op As Pokemon = BattleScreen . OppPokemon
If own = False Then
p = BattleScreen . OppPokemon
op = BattleScreen . OwnPokemon
End If
If Not op . Item Is Nothing Then
2023-01-02 15:27:59 +01:00
If op . Item . IsBerry = True OrElse op . Item . OriginalName . ToLower ( ) . EndsWith ( " gem " ) Then
2018-10-26 10:03:33 +02:00
Dim ItemID As Integer = op . Item . ID
BattleScreen . Battle . RemoveHeldItem ( Not own , own , BattleScreen , op . GetDisplayName ( ) & " 's " & op . Item . Name & " got burned up! " , " move:incinerate " )
End If
End If
End Sub
End Class
End Namespace