v2.5.3: fixed incorrect null check in wand charges per cast
This commit is contained in:
+1
-1
@@ -201,7 +201,7 @@ public class WandOfFireblast extends DamageWand {
|
|||||||
@Override
|
@Override
|
||||||
protected int chargesPerCast() {
|
protected int chargesPerCast() {
|
||||||
if (cursed ||
|
if (cursed ||
|
||||||
(charger != null && charger.target == null && charger.target.buff(WildMagic.WildMagicTracker.class) != null)){
|
(charger != null && charger.target != null && charger.target.buff(WildMagic.WildMagicTracker.class) != null)){
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
//consumes 30% of current charges, rounded up, with a min of 1 and a max of 3.
|
//consumes 30% of current charges, rounded up, with a min of 1 and a max of 3.
|
||||||
|
|||||||
+1
-1
@@ -277,7 +277,7 @@ public class WandOfRegrowth extends Wand {
|
|||||||
@Override
|
@Override
|
||||||
protected int chargesPerCast() {
|
protected int chargesPerCast() {
|
||||||
if (cursed ||
|
if (cursed ||
|
||||||
(charger != null && charger.target == null && charger.target.buff(WildMagic.WildMagicTracker.class) != null)){
|
(charger != null && charger.target != null && charger.target.buff(WildMagic.WildMagicTracker.class) != null)){
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
//consumes 30% of current charges, rounded up, with a min of 1 and a max of 3.
|
//consumes 30% of current charges, rounded up, with a min of 1 and a max of 3.
|
||||||
|
|||||||
Reference in New Issue
Block a user