Bladeren bron

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 jaren geleden
bovenliggende
commit
aabc9e2ee8

+ 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;
 		}