Skip to content

Impl. Changes#2

Open
R00tB33rMan wants to merge 8 commits intoStrangeOne101:masterfrom
R00tB33rMan:master
Open

Impl. Changes#2
R00tB33rMan wants to merge 8 commits intoStrangeOne101:masterfrom
R00tB33rMan:master

Conversation

@R00tB33rMan
Copy link

No description provided.

ArifKalender and others added 8 commits April 26, 2025 14:08
## Fixes
* Bug where /pk ch avatar wouldn't add subelements of elements

## Misc. Changes
* Line 190 | Changed the inner loop for getting subelements of an element.
    > * For the line `for (final SubElement sub : Element.getSubElements(e))`,(previous version: `for (final SubElement sub : Element.getSubElements(element))`, the getSubElements method would take the Element object outside of the for loop instead of the one needed in the outer for loop `for (Element e : new Element[] {Element.AIR, Element.EARTH, Element.FIRE, Element.WATER})`
Updates Java to 21 and Minecraft to 1.20
)

## Issue
This bug prevents damage from being applied consistently when using IceSpikeBlast and IceBlast. When a player is hit with IceSpikeBlast or IceBlast during the `bPlayer.slow(slowCooldown)`  the attack wouldnt pass through the `if(bPlayer.canBeSlowed())` check where the damage command for players is located.

## Additions
* Adds a SlowCooldown parameter to the config under "Abilities.Water.IceBlast.SlowCooldown".
* IceBlast uses new SlowCooldown parameter.
    
## Fixes
* Line 98 IceSpikeBlast
    > * Moves damage out of the `canBeSlowed()` check.
* Line 165 IceBlast
    > * Moves damage out of the `canBeSlowed()` check.

## Removals
* Line 99 IceSpikeBlast
    > * Removes recasting of entity to get the bending player. Now uses the same method as IceSpikePillar to get the bending player.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants