Browse Source

null checks

feature-workorder
FatBoy-DOTC 1 year ago
parent
commit
89658bb77a
  1. 4
      src/engine/objects/CharacterSkill.java

4
src/engine/objects/CharacterSkill.java

@ -1037,7 +1037,7 @@ public class CharacterSkill extends AbstractGameObject { @@ -1037,7 +1037,7 @@ public class CharacterSkill extends AbstractGameObject {
float bonus = 0f;
//TODO SKILLS RUNES
if (CharacterSkill.GetOwner(this).getBonuses() != null) {
if (CharacterSkill.GetOwner(this) != null && CharacterSkill.GetOwner(this).getBonuses() != null) {
//Get bonuses from runes
bonus = CharacterSkill.GetOwner(this).getBonuses().getSkillBonus(this.skillsBase.sourceType);
}
@ -1079,7 +1079,7 @@ public class CharacterSkill extends AbstractGameObject { @@ -1079,7 +1079,7 @@ public class CharacterSkill extends AbstractGameObject {
}
//Get any rune bonus
float bonus = 0f;
if (CharacterSkill.GetOwner(this).getBonuses() != null) {
if (CharacterSkill.GetOwner(this) != null && CharacterSkill.GetOwner(this).getBonuses() != null) {
//Get bonuses from runes
bonus = CharacterSkill.GetOwner(this).getBonuses().getSkillBonus(this.skillsBase.sourceType);
}

Loading…
Cancel
Save