forked from MagicBane/Server
null checks
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
//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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user