|
|
@ -678,13 +678,14 @@ public abstract class AbstractCharacter extends AbstractWorldObject { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public final Resists getResists() { |
|
|
|
public final Resists getResists() { |
|
|
|
if (this.resists == null && !this.getObjectType().equals(GameObjectType.Mob)) |
|
|
|
|
|
|
|
return Resists.getResists(0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.getObjectType().equals(GameObjectType.Mob)){ |
|
|
|
if(this.getObjectType().equals(GameObjectType.Mob)){ |
|
|
|
return ((Mob)this).mobResists; |
|
|
|
return ((Mob)this).mobResists; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.resists == null) |
|
|
|
|
|
|
|
return Resists.getResists(0); |
|
|
|
|
|
|
|
|
|
|
|
return this.resists; |
|
|
|
return this.resists; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|