mob resists

This commit is contained in:
2024-05-17 17:34:42 -05:00
parent e2ae758e36
commit 8379b48332
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ public class PrintResistsCmd extends AbstractDevCmd {
name = mb.getFirstName();
type = "Mob";
throwbackInfo(pc, "Server resists for " + type + ' ' + name);
((Mob)tar).mobResists.printResistsToClient(pc);
tar.getResists().printResistsToClient(pc);
return;
} else if (tar instanceof NPC) {
NPC npc = (NPC) tar;
+6 -5
View File
@@ -681,12 +681,13 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
if(this.getObjectType().equals(GameObjectType.Mob)){
return ((Mob)this).mobResists;
}else {
if (this.resists == null)
return Resists.getResists(0);
return this.resists;
}
if (this.resists == null)
return Resists.getResists(0);
return this.resists;
}
public final void setResists(final Resists value) {