mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-26 23:34:58 +02:00
Fixed Synchronize ability from interacting with sleep status infliction
This commit is contained in:
parent
a88f62b323
commit
9d84c01461
@ -2645,10 +2645,6 @@
|
|||||||
BattleScreen.BattleQuery.Add(New TextQueryObject(message))
|
BattleScreen.BattleQuery.Add(New TextQueryObject(message))
|
||||||
BattleScreen.BattleQuery.Add(New TextQueryObject(p.GetDisplayName() & " fell asleep!"))
|
BattleScreen.BattleQuery.Add(New TextQueryObject(p.GetDisplayName() & " fell asleep!"))
|
||||||
End Select
|
End Select
|
||||||
If p.Ability.Name.ToLower() = "synchronize" And from <> own Then
|
|
||||||
Me.InflictSleep(Not own, Not own, BattleScreen, SleepTurns, "Synchronize passed over the sleep.", "synchronize")
|
|
||||||
End If
|
|
||||||
|
|
||||||
If Not p.Item Is Nothing Then
|
If Not p.Item Is Nothing Then
|
||||||
If p.Item.Name.ToLower() = "chesto" And BattleScreen.FieldEffects.CanUseItem(own) = True And BattleScreen.FieldEffects.CanUseOwnItem(own, BattleScreen) = True Then
|
If p.Item.Name.ToLower() = "chesto" And BattleScreen.FieldEffects.CanUseItem(own) = True And BattleScreen.FieldEffects.CanUseOwnItem(own, BattleScreen) = True Then
|
||||||
If RemoveHeldItem(own, own, BattleScreen, "", "berry:chesto") = True Then
|
If RemoveHeldItem(own, own, BattleScreen, "", "berry:chesto") = True Then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user