Reworked Pixilate implementation

Same as Refrigerate and Aerilate. 
Now part of the GetAttackType function.
This commit is contained in:
Capt_Segis 2016-09-14 04:55:01 -05:00 committed by GitHub
parent 904dcd4f5b
commit 47b54173f3
1 changed files with 12 additions and 0 deletions

View File

@ -1641,6 +1641,18 @@
Return New Element(Element.Types.Normal)
End If
If Me.Type.Type = Element.Types.Normal Then
If p.Ability.Name.ToLower() = "pixilate" Then
Return New Element(Element.Types.Fairy)
End If
If p.Ability.Name.ToLower() = "refrigerate" Then
Return New Element(Element.Types.Ice)
End If
If p.Ability.Name.ToLower() = "aerilate" Then
Return New Element(Element.Types.Flying)
End If
End If
Return Me.Type
End Function