소스 검색

BETA: Currently, summons that are affected by effects which use weapon/armor conditions (such as Boost Morale, Angelic Icon, Spirit of Shilen etc.) pass those conditions only if their owner passes them. This is wrong. Summons dont have weapons nor armors, therefore effects that require weapon/armor condition shouldnt affect summons no matter if their owner meets the requirements or not.

If you somehow think that this change is wrong, that summons should get the bonuses if their owners met the requirements, make a post and prove me that im wrong.
Nik 12 년 전
부모
커밋
aabc9e2ee8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/conditions/ConditionUsingItemType.java

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

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