forked from MagicBane/Server
mob resist issue
This commit is contained in:
@@ -678,13 +678,8 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
|
||||
}
|
||||
|
||||
public final Resists getResists() {
|
||||
if (this.resists == null)
|
||||
if (this.resists == null && !this.getObjectType().equals(GameObjectType.Mob))
|
||||
return Resists.getResists(0);
|
||||
if(Mob.disciplineDroppers.contains(this)){
|
||||
return new Resists("Dropper");
|
||||
}
|
||||
if(this.getObjectType().equals(GameObjectType.Mob) && ((Mob)this).behaviourType.equals(MobBehaviourType.HamletGuard))
|
||||
return new Resists("HamletGuard");
|
||||
|
||||
return this.resists;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user