Fix Cute Charm affecting same gender or genderless

This commit is contained in:
JappaWakka 2025-08-20 16:34:35 +02:00
parent 53b0069ab1
commit cacec77a67

View File

@ -2593,9 +2593,11 @@
Case "cute charm"
If moveUsed.MakesContact = True AndAlso p.HasVolatileStatus(Pokemon.VolatileStatus.Infatuation) = False Then
If Core.Random.Next(0, 100) < 30 Then
If p.Gender <> Pokemon.Genders.Genderless AndAlso op.Gender <> Pokemon.Genders.Genderless AndAlso op.Gender <> p.Gender Then
InflictInfatuate(own, Not own, BattleScreen, op.GetDisplayName() & "'s Cute Charm affects " & p.GetDisplayName() & "!", "cutecharm")
End If
End If
End If
Case "aftermath"
If moveUsed.MakesContact = True Then
If op.HP <= 0 Then