Fix some bugs
This commit is contained in:
@@ -119,7 +119,7 @@ public class Assassin extends Player{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean specialAbility(Entity target) {
|
public boolean specialAbility(Entity target) {
|
||||||
if(super.getMp() > 80) {
|
if(super.getMp() >= 80) {
|
||||||
super.setMp(super.getMp() - 80);
|
super.setMp(super.getMp() - 80);
|
||||||
System.out.printf("%s (Assassin) uses special ability.\n", super.name);
|
System.out.printf("%s (Assassin) uses special ability.\n", super.name);
|
||||||
System.out.println("Assassin dodged the " + Colors.RED + "attack" + Colors.RESET);
|
System.out.println("Assassin dodged the " + Colors.RED + "attack" + Colors.RESET);
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user