Added condition for flagged player state.

This commit is contained in:
MobiusDev
2016-01-12 10:09:55 +00:00
parent 624a576989
commit a5f9eb4091
2 changed files with 56 additions and 0 deletions

View File

@ -89,6 +89,7 @@ import com.l2jmobius.gameserver.model.conditions.ConditionPlayerIsClanLeader;
import com.l2jmobius.gameserver.model.conditions.ConditionPlayerIsHero;
import com.l2jmobius.gameserver.model.conditions.ConditionPlayerIsInCombat;
import com.l2jmobius.gameserver.model.conditions.ConditionPlayerIsOnSide;
import com.l2jmobius.gameserver.model.conditions.ConditionPlayerIsPvpFlagged;
import com.l2jmobius.gameserver.model.conditions.ConditionPlayerLandingZone;
import com.l2jmobius.gameserver.model.conditions.ConditionPlayerLevel;
import com.l2jmobius.gameserver.model.conditions.ConditionPlayerLevelRange;
@ -567,6 +568,12 @@ public abstract class DocumentBase
cond = joinAnd(cond, new ConditionPlayerIsHero(val));
break;
}
case "ispvpflagged":
{
final boolean val = Boolean.parseBoolean(a.getNodeValue());
cond = joinAnd(cond, new ConditionPlayerIsPvpFlagged(val));
break;
}
case "transformationid":
{
final int id = Integer.parseInt(a.getNodeValue());