mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 08:25:07 +00:00
Fix Charged FireBlast radius and cooldown (#1019)
## Fixes * Fixes Charged FireBlast radius being too big * Fixes Charged FireBlast cooldown happening without using the ability
This commit is contained in:
parent
34fa6d08b8
commit
c4be31c3b9
1 changed files with 4 additions and 2 deletions
|
@ -216,7 +216,7 @@ public class FireBlastCharged extends FireAbility {
|
|||
}
|
||||
|
||||
boolean exploded = false;
|
||||
for (final Entity entity : GeneralMethods.getEntitiesAroundPoint(this.location, 2 * this.collisionRadius)) {
|
||||
for (final Entity entity : GeneralMethods.getEntitiesAroundPoint(this.location, this.collisionRadius)) {
|
||||
if (entity.getEntityId() == this.player.getEntityId() || GeneralMethods.isRegionProtectedFromBuild(this, entity.getLocation())) {
|
||||
continue;
|
||||
}
|
||||
|
@ -310,8 +310,10 @@ public class FireBlastCharged extends FireAbility {
|
|||
@Override
|
||||
public void remove() {
|
||||
super.remove();
|
||||
if (this.charged) {
|
||||
this.bPlayer.addCooldown(this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
|
|
Loading…
Reference in a new issue