class AfflictionPassiveSkillLogic extends BasePassiveSkillLogic { getAfflictionPassive ( executor , target , passiveSkill ) { if ( executor . rarity > target . rarity ) { let afflictionSkill = new Skill ( passiveSkill . id ) ; afflictionSkill . skillFuncArg1 = 0 ; afflictionSkill . skillFuncArg2 = passiveSkill . skillFuncArg4 ; afflictionSkill . skillFuncArg3 = passiveSkill . skillFuncArg1 ; afflictionSkill . skillFuncArg4 = passiveSkill . skillFuncArg5 ; afflictionSkill . skillFuncArg5 = passiveSkill . skillFuncArg6 ; return afflictionSkill ; } else { return null ; } } }