@@ -46,7 +46,7 @@ public class FireShots extends FireAbility implements AddonAbility {
4646 private double damage ;
4747 @ Attribute ("CollisionRadius" )
4848 private double collisionRadius ;
49- private Boolean flameInMainHand = null ;
49+ private Boolean flameInMainHand = null ;
5050
5151 public int amount ;
5252
@@ -57,6 +57,9 @@ public FireShots(Player player){
5757 return ;
5858 }
5959
60+ if (!player .hasGravity ())
61+ player .setGravity (true );
62+
6063 setFields ();
6164
6265 amount = startAmount ;
@@ -234,14 +237,14 @@ public static void fireShot(Player player) {
234237 }
235238 }
236239
237- public static void swapHands (Player player ) {
238- FireShots fs = getAbility (player , FireShots .class );
239- if (fs == null )
240- return ;
241- if (fs .flameInMainHand == null )
242- fs .flameInMainHand = true ;
243- else fs .flameInMainHand = !fs .flameInMainHand ;
244- }
240+ public static void swapHands (Player player ) {
241+ FireShots fs = getAbility (player , FireShots .class );
242+ if (fs == null )
243+ return ;
244+ if (fs .flameInMainHand == null )
245+ fs .flameInMainHand = true ;
246+ else fs .flameInMainHand = !fs .flameInMainHand ;
247+ }
245248
246249 public void fireShot () {
247250 if (amount >= 1 ) {
@@ -253,9 +256,9 @@ public void fireShot() {
253256 }
254257
255258 public Location getRightHandPos () {
256- return (player .getMainHand ()==MainHand .RIGHT == ((flameInMainHand == null ) || flameInMainHand ) ?
257- GeneralMethods .getRightSide (player .getLocation (), .55 ) :
258- GeneralMethods .getLeftSide (player .getLocation (), .55 )).add (0 , 1.2 , 0 );
259+ return (player .getMainHand ()==MainHand .RIGHT == ((flameInMainHand == null ) || flameInMainHand ) ?
260+ GeneralMethods .getRightSide (player .getLocation (), .55 ) :
261+ GeneralMethods .getLeftSide (player .getLocation (), .55 )).add (0 , 1.2 , 0 );
259262 }
260263
261264 private void displayFireBalls () {
0 commit comments