Instead of just grabbing the last char, grab the last part of the string (after the .) and parseInt that. Then the numeric version compares will return the right class.
* Fixed IceBlast Selection Bug
* Added KnockBack to WallOfFire
Also organized imports.
* Fixed WallOfFire Knockback
* Fixed Watermanip creating air pockets.
Also organized imports.
* Fixed surge wall removing leaves, also re-did my fix on WaterManipulation creating air pockets.
I thought I tested my fix for watermanipulation really well, but I
didn't test it as well as I thought, my bad. With my previous fix, it
fixed watermanip's air pockets, but it would create waterblocks if used
from a waterbottle, this is now fixed.
* Changed addWater to a non-static method, also changed player to non-static.
* Changed Extraction to be a metal ability.
* Fixed WaterManipulation for sure this time.
Sorry for all of the fails before, I would fix a problem, then another
one would arise. This has been test, and I haven't found any new issues,
and I have fixed the previous ones.
• Fixes disabled abilities still being able to be bound (some) and used
• Fixes Torrent flood issue with bottlebending
• Fixed Combos not being able to be disabled
• Fixed WaterArms Spear not removing, even forcefully
• Fixes FireBlast still loading when disabled
• Fixes FireBlast still being able to be charged when on a different
slot
• Fixed NPE
If fall damage is disabled via another plugin like WorldGuard, abilities like Shockwave can't function upon landing. Plus, there's already a lot of checks for event.isCancelled, so don't see a reason to do a check for the entire event.
Added new ClickType (LEFT_CLICK_ENTITY)
Updated Immobilize to use LEFT_CLICK_ENTITY to fix being able to do the
steps of Immobilize without hitting an entity
• Fixed the /bending display <combo> not working when specifying combo
aliases
• Fixed IceBullet using the wrong name in the language file
• Fixed Bloodbending using a constant range of 6
• Fixed Chi taking no damage but still getting the animation when
jumping off blocks
• Updated staff list in the /bending who command
• Added requireAvatar() method to AvatarAbility
• Allows moves to be created that don't require the user to be the
avatar in order to use them (adding back old functionality)
• Added AbilityProgressEvent
• Tweaked Grammar
• Fixed speed/jump passives
• Fixed incorrect tabbing with the remove command