mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-14 04:47:51 +00:00
EarthBlast Fix
- Earthblast fix - Fix for ExtraAbility
This commit is contained in:
parent
0b37626399
commit
54e066d780
2 changed files with 6 additions and 2 deletions
|
@ -153,11 +153,14 @@ public class AbilityModuleManager {
|
|||
}
|
||||
for (AbilityModule ab: ability) {
|
||||
//To check if EarthBlast == Earthblast or for example, EarthBlast == EARTHBLAST
|
||||
boolean succes = true;
|
||||
for(String enabledAbility : abilities){
|
||||
if(enabledAbility.equalsIgnoreCase(ab.getName())){
|
||||
continue;
|
||||
succes = false;
|
||||
}
|
||||
}
|
||||
if (!succes)
|
||||
continue;
|
||||
ab.onThisLoad();
|
||||
abilities.add(ab.getName());
|
||||
for (StockAbilities a: StockAbilities.values()) {
|
||||
|
|
|
@ -310,8 +310,9 @@ public class EarthBlast {
|
|||
Location location = player.getEyeLocation();
|
||||
Vector vector = location.getDirection();
|
||||
entity.setVelocity(vector.normalize().multiply(pushfactor));
|
||||
double damage = this.damage;
|
||||
if (Methods.isMetal(sourceblock) && Methods.canMetalbend(player)) {
|
||||
damage = Methods.getMetalAugment(damage);
|
||||
damage = Methods.getMetalAugment(this.damage);
|
||||
}
|
||||
Methods.damageEntity(player, entity, damage);
|
||||
progressing = false;
|
||||
|
|
Loading…
Reference in a new issue