mob resist issue

This commit is contained in:
2024-05-12 17:03:29 -05:00
parent 210cc94dac
commit a8a9cdb0f1
2 changed files with 6 additions and 2 deletions
@@ -39,6 +39,9 @@ public class PrintResistsCmd extends AbstractDevCmd {
if (mb != null)
name = mb.getFirstName();
type = "Mob";
throwbackInfo(pc, "Server resists for " + type + ' ' + name);
((Mob)tar).mobResists.printResistsToClient(pc);
return;
} else if (tar instanceof NPC) {
NPC npc = (NPC) tar;
Contract contract = npc.getContract();
+3 -2
View File
@@ -678,13 +678,14 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
}
public final Resists getResists() {
if (this.resists == null && !this.getObjectType().equals(GameObjectType.Mob))
return Resists.getResists(0);
if(this.getObjectType().equals(GameObjectType.Mob)){
return ((Mob)this).mobResists;
}
if (this.resists == null)
return Resists.getResists(0);
return this.resists;
}