mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
Add click functionality to Combustion
Clicking while Combustion is en route will cause it to explode
This commit is contained in:
parent
9b8060f3ae
commit
4978e800b2
2 changed files with 10 additions and 0 deletions
|
@ -747,6 +747,9 @@ public class PKListener implements Listener {
|
|||
if (abil.equalsIgnoreCase("WallOfFire")) {
|
||||
new WallOfFire(player);
|
||||
}
|
||||
if (abil.equalsIgnoreCase("Combustion")) {
|
||||
Combustion.explode(player);
|
||||
}
|
||||
}
|
||||
|
||||
if (Methods.isChiAbility(abil)) {
|
||||
|
|
|
@ -174,6 +174,13 @@ public class Combustion {
|
|||
instances.remove(player);
|
||||
|
||||
}
|
||||
|
||||
public static void explode(Player player) {
|
||||
if (instances.containsKey(player)) {
|
||||
Combustion combustion = instances.get(player);
|
||||
combustion.createExplosion(combustion.location, combustion.power, breakblocks);
|
||||
}
|
||||
}
|
||||
|
||||
private void advanceLocation() {
|
||||
ParticleEffect.FIREWORKS_SPARK.display(location, (float) Math.random(), (float) Math.random(), (float) Math.random(), 0, 5);
|
||||
|
|
Loading…
Reference in a new issue