Code improvements.

This commit is contained in:
MobiusDev
2016-04-24 16:30:15 +00:00
parent 8bd51aba1c
commit 2dd14bef9b
860 changed files with 8865 additions and 17041 deletions

View File

@@ -379,11 +379,7 @@ public class Q10385_RedThreadOfFate extends Quest
@Override
public String onSocialActionSee(L2Npc npc, L2PcInstance caster, int actionId)
{
if ((caster == null) || (npc == null))
{
return super.onSocialActionSee(npc, caster, actionId);
}
if ((caster.getTarget() == null) || !caster.getTarget().isNpc())
if ((caster == null) || (npc == null) || (caster.getTarget() == null) || !caster.getTarget().isNpc())
{
return super.onSocialActionSee(npc, caster, actionId);
}