mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-22 16:05:01 +00:00
Changes: Tornado, Illumination, SurgeWave (#567)
This commit is contained in:
parent
384b5662b8
commit
e4df21b696
4 changed files with 5 additions and 6 deletions
|
@ -90,7 +90,7 @@ public class Tornado extends AirAbility {
|
|||
double timefactor = currentHeight / maxHeight;
|
||||
currentRadius = timefactor * radius;
|
||||
|
||||
if (origin.getBlock().getType() != Material.AIR) {
|
||||
if (origin.getBlock().getType() != Material.AIR && origin.getBlock().getType() != Material.BARRIER) {
|
||||
origin.setY(origin.getY() - 1. / 10. * currentHeight);
|
||||
|
||||
for (Entity entity : GeneralMethods.getEntitiesAroundPoint(origin, currentHeight)) {
|
||||
|
|
|
@ -22,7 +22,8 @@ public class FirePassive {
|
|||
player.setFireTicks(80);
|
||||
}
|
||||
|
||||
if (CoreAbility.getAbility(player, Illumination.class) == null) {
|
||||
if (bPlayer != null && !CoreAbility.hasAbility(player, Illumination.class)
|
||||
&& bPlayer.canBendIgnoreBinds(CoreAbility.getAbility("Illumination"))) {
|
||||
new Illumination(player);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -353,11 +353,9 @@ public class SurgeWave extends WaterAbility {
|
|||
}
|
||||
|
||||
public void returnWater() {
|
||||
if (location != null) {
|
||||
if (player.isOnline()) {
|
||||
if (location != null && player.isOnline()) {
|
||||
new WaterReturn(player, location.getBlock());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void thaw() {
|
||||
|
|
|
@ -129,7 +129,7 @@ public class WaterReturn extends WaterAbility {
|
|||
if (hasAbility(player, WaterManipulation.class)
|
||||
|| hasAbility(player, WaterManipulation.class)
|
||||
|| hasAbility(player, OctopusForm.class)
|
||||
|| hasAbility(player, SurgeWave.class)
|
||||
// || hasAbility(player, SurgeWave.class) NOTE: ONLY DISABLED TO PREVENT BOTTLEBENDING FROM BEING DISABLED FOREVER. ONCE BOTTLEBENDING HAS BEEN RECODED IN 1.9, THIS NEEDS TO BE READDED TO THE NEW SYSTEM.
|
||||
|| hasAbility(player, SurgeWall.class)
|
||||
|| hasAbility(player, IceSpikeBlast.class)) {
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue