def onAttack (self,npc,st): npcId = npc.getNpcId() maxHp = npc.getMaxHp() nowHp = npc.getCurrentHp() if npcId == ABYSS_JEWEL1_ID and int(st.get("part"))==5 and maxHp*0.75