class DefensePassiveSkillLogic extends BasePassiveSkillLogic { getEffectRatio ( executor , attacker , passiveSkill ) { if ( executor . rarity > attacker . rarity ) { return 1 - passiveSkill . skillFuncArg1 ; } else { return 1 ; } } }