Fixed onAbilityUsed bug with _player (presumably because it was added to cull and _player was set to null right before SkillTriggerEvent happened.)

This commit is contained in:
Jonathan Williams 2015-11-29 02:39:37 -06:00
parent 5b04a3223d
commit 1d1a1d96f8
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public class TaskUseAbility extends TutorialTask<TutorialGettingStarted>
@EventHandler
public void onAbilityUesd(SkillTriggerEvent event)
{
if (!_player.equals(event.GetPlayer()))
if (_player == null || !_player.equals(event.GetPlayer()))
{
return;
}