v0.9.3: fixed ratmogrify costing charge when it fails in some cases

This commit is contained in:
Evan Debenham 2021-06-06 13:38:10 -04:00
parent 77998ff25b
commit 77079ff9a4

View File

@ -53,6 +53,7 @@ public class Ratmogrify extends ArmorAbility {
} else if (ch == hero){
if (!hero.hasTalent(Talent.RATFORCEMENTS)){
GLog.w(Messages.get(this, "self_target"));
return;
} else {
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)){
GLog.w(Messages.get(this, "too_strong"));
return;
} else {
TransmogRat rat = new TransmogRat();
rat.setup((Mob)ch);