You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding onto #5, which should be implemented first before this is considered.
When a |callback|trapped|0 message is encountered, this usually means that the opponent's pokemon has a trapping ability (there are only three so this can be hardcoded for now). The Battle instance should call a method in its EventProcessor field to store that data in the BattleState.
The text was updated successfully, but these errors were encountered:
If the client's pokemon has a conditional trapping ability, and the opponent still switches out, then that means the opponent doesn't satisfy the ability's condition.
Trapping conditions can also be bypassed by holding a Shed Shell item, self-switching, or being phased, so these should be possibilities as well.
(Above is too complicated to track currently. May be revisited later).
In order to properly track grounded for the Arena Trap ability, #18 also has to be implemented first.
Close#16.
Narrow possible abilities if a |callback|trapped message was received.
Re-decide if new info is found after a rejected choice.
Move postAction() call to body of acceptChoice(). This should prevent
possible state changes from inappropriately affecting the state before
the AI's choice has been accepted (can be rejected from things like
Arena Trap).
Close#25 due to above.
Add and modify tests.
Close#16.
Narrow possible abilities if a |callback|trapped message was received.
Re-decide if new info is found after a rejected choice.
Move postAction() call to body of acceptChoice(). This should prevent
possible state changes from inappropriately affecting the state before
the AI's choice has been accepted (can be rejected from things like
Arena Trap).
Add and modify tests.
Adding onto #5, which should be implemented first before this is considered.
When a
|callback|trapped|0
message is encountered, this usually means that the opponent's pokemon has a trapping ability (there are only three so this can be hardcoded for now). The Battle instance should call a method in its EventProcessor field to store that data in the BattleState.The text was updated successfully, but these errors were encountered: