lzm Posted November 10, 2021 Share Posted November 10, 2021 Hi, I try to add exception for few skills to Sarah Card effect. I try to add something like this: switch (bl->type) { case BL_PC: { struct map_session_data *sd = BL_CAST(BL_PC, bl); if (!sd) return; dmg_ori = dmg_new = d->damage + d->damage2; if (sd->bonus.absorb_dmg_maxhp) { if(skill_id) { switch(skill_id) { case RA_CLUSTERBOMB: case SJ_NOVAEXPLOSING: break; } } else { int hp = sd->bonus.absorb_dmg_maxhp * status_get_max_hp(bl) / 100; if (dmg_ori > hp) dmg_new = dmg_ori - hp; } } } break; } But I don't know how to register skill_id. How to add that check? Or is any other better method to achieve this? Quote Link to comment Share on other sites More sharing options...
Hi,
I try to add exception for few skills to Sarah Card effect. I try to add something like this:
But I don't know how to register skill_id. How to add that check? Or is any other better method to achieve this?
Link to comment
Share on other sites