- 0
Sign in to follow this
Followers
0
[HELP] Custom skill that only work if an effect is active
Asked by
reds09
-
Recently Browsing 0 members
No registered users viewing this page.

I'm trying to make a skill only be performed or take damage when the target is petrified (SC_STONE), but I can not solve.
I used the example of SC_WHITEIMPRISON:
if( sc->data[SC_WHITEIMPRISON] && skill_id != HW_GRAVITATION ) { // Gravitation and Pressure do damage without removing the effect if( skill_id == MG_NAPALMBEAT || skill_id == MG_SOULSTRIKE || skill_id == WL_SOULEXPANSION || (skill_id && skill->get_ele(skill_id, skill_lv) == ELE_GHOST) || (!skill_id && (status->get_status_data(src))->rhw.ele == ELE_GHOST) ){ if( skill_id == WL_SOULEXPANSION ) damage <<= 1; // If used against a player in White Imprison, the skill deals double damage. status_change_end(bl,SC_WHITEIMPRISON,INVALID_TIMER); // Those skills do damage and removes effect }else{ d->dmg_lv = ATK_BLOCK; return 0; } }and I did my, but it does not work fot.
if(skill_id == NG_JUTSU_FUNERAL) { // Gravitation and Pressure do damage without removing the effect if(sc->data[SC_STONE]){ damage <<= 1; // If used against a player in White Imprison, the skill deals double damage. }else{ d->dmg_lv = ATK_BLOCK; return 0; } }Is there some function that checks whether the player is with some active status?
Style the getStatus, however for the enemy.
Share this post
Link to post
Share on other sites