Fixed L2PcInstance doCast NPE.
This commit is contained in:
parent
edb23d3285
commit
332cffb2d2
@ -4547,7 +4547,7 @@ public final class L2PcInstance extends L2Playable
|
||||
@Override
|
||||
public void doCast(Skill skill)
|
||||
{
|
||||
if (!checkUseMagicConditions(skill, getCurrentSkill().isCtrlPressed(), getCurrentSkill().isShiftPressed()))
|
||||
if ((_currentSkill != null) && !checkUseMagicConditions(skill, _currentSkill.isCtrlPressed(), _currentSkill.isShiftPressed()))
|
||||
{
|
||||
setIsCastingNow(false);
|
||||
setIsCastingSimultaneouslyNow(false);
|
||||
|
Loading…
Reference in New Issue
Block a user