浏览代码

BETA: Condition Player Race shouldn't check player's race if the acting character isn't a player.
* Thanks Tavo22, goncafa for report.
* Thanks MELERIX for first fix implementation and info about the bug.

Zoey76 13 年之前
父节点
当前提交
90087b8cec

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/conditions/ConditionPlayerRace.java

@@ -38,7 +38,7 @@ public class ConditionPlayerRace extends Condition
 	@Override
 	public boolean testImpl(Env env)
 	{
-		if (env.getPlayer() == null)
+		if ((env.getCharacter() == null) || !env.getCharacter().isPlayer())
 		{
 			return false;
 		}