hello all i need a little help i need make evasion from raidboss/monster/minions
like now a raidboss have same accuracy with evasion i need make a code for take
accuracy from player and sub -5 / - 10 from evasion like same this
public int getEvasionRate(final L2Character target) { if (_activeChar == null) return 1; float SubEvasion = -20; if(_activeChar instanceof L2RaidBossInstance) { return (int) calcStat(Stats.EVASION_RATE, _activeChar.getEvasionRate(_activeChar) - SubEvasion, target, null); } return (int) (calcStat(Stats.EVASION_RATE, 0, target, null) / _activeChar.getArmourExpertisePenalty()); }
but i am not sure how to do that if any can help i am happy