Removed range check on skills that do not have any.

This commit is contained in:
MobiusDev 2017-10-12 00:00:13 +00:00
parent c9dfb4fe5e
commit a1b85758ff
4 changed files with 8 additions and 8 deletions

View File

@ -165,7 +165,7 @@ public class SkillCaster implements Runnable
return null; return null;
} }
if (!Util.checkIfInRange(skill.getCastRange(), caster, target, true)) if ((skill.getCastRange() > 0) && !Util.checkIfInRange(skill.getCastRange(), caster, target, true))
{ {
return null; return null;
} }
@ -401,7 +401,7 @@ public class SkillCaster implements Runnable
return false; return false;
} }
if (!Util.checkIfInRange(_skill.getEffectRange(), caster, target, true)) if ((_skill.getEffectRange() > 0) && !Util.checkIfInRange(_skill.getEffectRange(), caster, target, true))
{ {
if (caster.isPlayer()) if (caster.isPlayer())
{ {

View File

@ -165,7 +165,7 @@ public class SkillCaster implements Runnable
return null; return null;
} }
if (!Util.checkIfInRange(skill.getCastRange(), caster, target, true)) if ((skill.getCastRange() > 0) && !Util.checkIfInRange(skill.getCastRange(), caster, target, true))
{ {
return null; return null;
} }
@ -401,7 +401,7 @@ public class SkillCaster implements Runnable
return false; return false;
} }
if (!Util.checkIfInRange(_skill.getEffectRange(), caster, target, true)) if ((_skill.getEffectRange() > 0) && !Util.checkIfInRange(_skill.getEffectRange(), caster, target, true))
{ {
if (caster.isPlayer()) if (caster.isPlayer())
{ {

View File

@ -165,7 +165,7 @@ public class SkillCaster implements Runnable
return null; return null;
} }
if (!Util.checkIfInRange(skill.getCastRange(), caster, target, true)) if ((skill.getCastRange() > 0) && !Util.checkIfInRange(skill.getCastRange(), caster, target, true))
{ {
return null; return null;
} }
@ -401,7 +401,7 @@ public class SkillCaster implements Runnable
return false; return false;
} }
if (!Util.checkIfInRange(_skill.getEffectRange(), caster, target, true)) if ((_skill.getEffectRange() > 0) && !Util.checkIfInRange(_skill.getEffectRange(), caster, target, true))
{ {
if (caster.isPlayer()) if (caster.isPlayer())
{ {

View File

@ -165,7 +165,7 @@ public class SkillCaster implements Runnable
return null; return null;
} }
if (!Util.checkIfInRange(skill.getCastRange(), caster, target, true)) if ((skill.getCastRange() > 0) && !Util.checkIfInRange(skill.getCastRange(), caster, target, true))
{ {
return null; return null;
} }
@ -401,7 +401,7 @@ public class SkillCaster implements Runnable
return false; return false;
} }
if (!Util.checkIfInRange(_skill.getEffectRange(), caster, target, true)) if ((_skill.getEffectRange() > 0) && !Util.checkIfInRange(_skill.getEffectRange(), caster, target, true))
{ {
if (caster.isPlayer()) if (caster.isPlayer())
{ {