You should not heal/buff monsters without pressing the ctrl button.

This commit is contained in:
MobiusDev 2017-04-17 11:28:55 +00:00
parent f8f88452ca
commit 97fdf35c3d
2 changed files with 14 additions and 0 deletions

View File

@ -157,6 +157,13 @@ public class SkillCaster implements Runnable
return null;
}
// You should not heal/buff monsters without pressing the ctrl button.
if (caster.isPlayer() && target.isMonster() && (skill.getEffectPoint() > 0) && !ctrlPressed)
{
caster.sendPacket(SystemMessageId.INVALID_TARGET);
return null;
}
castTime = castTime > -1 ? castTime : Formulas.calcHitTime(caster, skill);
// Schedule a thread that will execute 500ms before casting time is over (for animation issues and retail handling).

View File

@ -157,6 +157,13 @@ public class SkillCaster implements Runnable
return null;
}
// You should not heal/buff monsters without pressing the ctrl button.
if (caster.isPlayer() && target.isMonster() && (skill.getEffectPoint() > 0) && !ctrlPressed)
{
caster.sendPacket(SystemMessageId.INVALID_TARGET);
return null;
}
castTime = castTime > -1 ? castTime : Formulas.calcHitTime(caster, skill);
// Schedule a thread that will execute 500ms before casting time is over (for animation issues and retail handling).