mob resists
This commit is contained in:
@@ -40,7 +40,7 @@ public class PrintResistsCmd extends AbstractDevCmd {
|
|||||||
name = mb.getFirstName();
|
name = mb.getFirstName();
|
||||||
type = "Mob";
|
type = "Mob";
|
||||||
throwbackInfo(pc, "Server resists for " + type + ' ' + name);
|
throwbackInfo(pc, "Server resists for " + type + ' ' + name);
|
||||||
((Mob)tar).mobResists.printResistsToClient(pc);
|
tar.getResists().printResistsToClient(pc);
|
||||||
return;
|
return;
|
||||||
} else if (tar instanceof NPC) {
|
} else if (tar instanceof NPC) {
|
||||||
NPC npc = (NPC) tar;
|
NPC npc = (NPC) tar;
|
||||||
|
|||||||
@@ -681,12 +681,13 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
|
|||||||
|
|
||||||
if(this.getObjectType().equals(GameObjectType.Mob)){
|
if(this.getObjectType().equals(GameObjectType.Mob)){
|
||||||
return ((Mob)this).mobResists;
|
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) {
|
public final void setResists(final Resists value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user