v0.9.3: fixed ratmogrify costing charge when it fails in some cases
This commit is contained in:
parent
77998ff25b
commit
77079ff9a4
|
@ -53,6 +53,7 @@ public class Ratmogrify extends ArmorAbility {
|
||||||
} else if (ch == hero){
|
} else if (ch == hero){
|
||||||
if (!hero.hasTalent(Talent.RATFORCEMENTS)){
|
if (!hero.hasTalent(Talent.RATFORCEMENTS)){
|
||||||
GLog.w(Messages.get(this, "self_target"));
|
GLog.w(Messages.get(this, "self_target"));
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
ArrayList<Integer> spawnPoints = new ArrayList<>();
|
ArrayList<Integer> spawnPoints = new ArrayList<>();
|
||||||
|
|
||||||
|
@ -96,6 +97,7 @@ public class Ratmogrify extends ArmorAbility {
|
||||||
}
|
}
|
||||||
} else if (Char.hasProp(ch, Char.Property.MINIBOSS) || Char.hasProp(ch, Char.Property.BOSS)){
|
} else if (Char.hasProp(ch, Char.Property.MINIBOSS) || Char.hasProp(ch, Char.Property.BOSS)){
|
||||||
GLog.w(Messages.get(this, "too_strong"));
|
GLog.w(Messages.get(this, "too_strong"));
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
TransmogRat rat = new TransmogRat();
|
TransmogRat rat = new TransmogRat();
|
||||||
rat.setup((Mob)ch);
|
rat.setup((Mob)ch);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user