Add click functionality to Combustion

Clicking while Combustion is en route will cause it to explode
This commit is contained in:
MistPhizzle 2014-08-09 11:24:43 -04:00
parent 9b8060f3ae
commit 4978e800b2
2 changed files with 10 additions and 0 deletions

View file

@ -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)) {

View file

@ -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);