public boolean testImpl(Env env)
{
int neededBattle = _battleForces;
if (neededBattle > 0)
{
L2Effect battleForce = env.player.getFirstEffect(BATTLE_FORCE);
if (!(battleForce instanceof EffectBattleForce) ||
((EffectBattleForce)battleForce).forces < neededBattle)
return false;
}
int neededSpell = _spellForces;
if (neededSpell > 0)
{
L2Effect spellForce = env.player.getFirstEffect(SPELL_FORCE);
if (!(spellForce instanceof EffectSpellForce) ||
((EffectSpellForce)spellForce).forces < neededSpell)
return false;
}
return true;