Jump to content

isConst? vs hasWorking_____


Recommended Posts

I'm not sure if this is intended, but a lot of checks to do with moves/abilities/items that are new (as in not in default essentials) use isConst? for checking if a Pokemon has a certain ability or a certain item instead of hasWorkingAbility and hasWorkingItem. This allows for things like Gastro Acid not nullifying an ability and Magic Room/Klutz not nullifying the effects of an item. I'll give some examples in the code where this would be problematic:

- A Tapu Fini with Misty Surge enters with an Amplifield Rock while under the effects of Magic Room, but the duration of Misty Terrain is extended nonetheless

- A Greninja with Protean is under the effect of Gastro Acid still changes types when using moves

- A Golurk with Klutz enters battle with a Synthetic Seed on the Short-Circuit Field but still gets the boost

- A Lopunny with Klutz wants to use Switcheroo to give its Assault Vest to the opponent, but Lopunny is unable to use Switcheroo because Assault Vest ignores Klutz

  • Thanks 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...