Added FreezeDry Effectiveness

This commit is contained in:
Capt_Segis 2016-09-14 03:59:41 -05:00 committed by GitHub
parent 28521bd6b2
commit 052ef49813
1 changed files with 7 additions and 0 deletions

View File

@ -574,6 +574,13 @@
Dim Type2 As Single = ReverseTypeEffectiveness(Element.GetElementMultiplier(move.GetAttackType(own, BattleScreen), op.Type2))
Dim effectiveness As Single = Type1 * Type2
'Freeze Dry
If move.ID = 573 Then
If op.Type1 = Element.Types.Water Or op.Type2 = Element.Types.Water Then
effectiveness *= 4
End If
End If
Dim hasIronBall As Boolean = False
If Not p.Item Is Nothing Then
If p.Item.Name.ToLower() = "iron ball" And BattleScreen.FieldEffects.CanUseItem(own) = True And BattleScreen.FieldEffects.CanUseOwnItem(own, BattleScreen) = True Then