Browse Source

mob work

lakebane
FatBoy-DOTC 10 hours ago
parent
commit
49ea9e50cf
  1. 6
      src/engine/mobileAI/utilities/CombatUtilities.java

6
src/engine/mobileAI/utilities/CombatUtilities.java

@ -140,7 +140,11 @@ public class CombatUtilities {
public static boolean triggerDefense(Mob agent, AbstractWorldObject target) { public static boolean triggerDefense(Mob agent, AbstractWorldObject target) {
int defense = 0; int defense = 0;
int atr = agent.getAtrHandOne(); int atr = agent.mobBase.getAtr();
if(agent.getBonuses() != null){
atr += agent.getBonuses().getFloat(ModType.OCV,SourceType.None);
atr *= agent.getBonuses().getFloatPercentAll(ModType.OCV,SourceType.None);
}
switch (target.getObjectType()) { switch (target.getObjectType()) {
case PlayerCharacter: case PlayerCharacter:
defense = ((AbstractCharacter) target).getDefenseRating(); defense = ((AbstractCharacter) target).getDefenseRating();

Loading…
Cancel
Save