Changelog 14.02.2021:
Coded Illusion.
Coded Spiky Shield.
Coded Smack Down.
Coded Psycho Shift.
Coded Gluttony.
Coded Iron Ball.
Coded Evolution Moves.
After a Pokemon evolves, it immediately attempts to learn all evolution moves for its evolved form.
Female Meowstic can learn now all moves based on gen 7 with the respective method.
All Lycanroc forms should learn now their correct moves by the respective learn method.
Shell Bell works properly now.
Multistrike moves (such as Rock Blast) are rerolling the damage and crit chance with each hit now.
The Recoil damage from Iron Barbs, Rocky Helmet and Rough Skin will be applied directly on each hit from a multi-strike move now.
Burn, Multiscale and Screens (such as Reflect) are modifiers in the calculation formula instead of halving the damage in the code somewhere. Resulting in the same effect but fixed a few edge cases.
The damage dealt by Aegislash will consider burn and screens into the damage calculation now.
The status conditions and confusion will be applied on the player's Pokemon even if the move requires a target and the opponent's pokemon is dead.
Moves like Flare Blitz will thaw the Player's Pokemon now in this case.
if a player’s final Pokemon was holding Rocky Helmet or has the Ability Rough Skin or Iron Barbs and both players’ final Pokemon faint as a result, the player who used the move wins that game regardless if the players’pokemon fainted due to the Recoil damage.
The effect of Will-of-wisp will be nullified by Flash Fire now.
The damage will be nullified now If player's Pokemon use Magma Storm or Fire Spin against a Pokemon behind a Substitute with the Ability Flash Fire.
The move Curse will now sacrifice 50% of the total HP instead of HP left.
Damage reducing berries are only halving the damage of the first hit of a multi-strike move now.
Recovering moves are failing now when the player’s Pokemon is at full hp.
Roost and Rest, where the player’s Pokemon loses flying type and falls asleep, respectively, shouldn't happen in this case.
Final Gambit will not consider as self target move anymore.
If Final Gambit doesn't hit the opponent due to missing, type immunity, or protection, then Final Gambit will fail, and the user will not faint.
Curse will not consider as self target move anymore.
Dark types are immune to Prankster Curse now.
The moves Stealth Rock, Spikes, Toxic Spikes and Sticky Web are affected by Pressure now
The secondary effect of a damaging move will only be activated when you damaged the opponent now.
You cannot get burned by a secondary effect anymore when the move was absorbed by Dry Skin.
Pokemon can become grounded now.
Fixed a bug that Cursed Body gets activated even if the move was protected.
Weak Armor should not trigger anymore when the opponent's pokemon is immune to the move used.
Fixed a bug that a badly poisoned pokemon takes damage equal to 1/8 of its maxinum HP instead of 1/16 in the first turn.
Sturdy and Focus Sash message will show up now when the player’s Pokemon is hit by a multi-strike move.
Fixed a bug where Players were able to use the Staff Tags in chat.
Synchronize will now be activated even through Abilities like Poison Point.
Fixed a visual bug with Tinted Lens.
Fixed a bug that Bright Powder is still active after its being knocked off.
Charge will double the atk power of the next electric move instead of the damage dealt. (resulting in virtually the same effect).
Fixed a visual bug with critical hits and Aegislash.
Safari and Bug Catching Code were reworked. You will stay in the bug-catching area and safari zone now if you disconnect. Keep in mind, you still get ported to the last recent poke center if you disconnect while being in battle.
Many, many, many clean-ups and small reworks in the battle code.