Jump to content
  • 0

SpecialEffect Affecting Explosion


Question

Posted

hi guys.. i have a question regarding specialeffect!

i put this code into the  odins_power and its working fine, however when a champ uses critical explosion, the critical explosion is affected by the specialeffect too.. 

how do i make sure that the specialeffect is applicable to odins_power only....

    case SR_GENTLETOUCH_ENERGYGAIN:
    case SR_GENTLETOUCH_CHANGE:
    case SR_GENTLETOUCH_REVITALIZE:
    case GN_CARTBOOST:
    case ALL_ODINS_POWER:
        if( sd != NULL )
        {
            clif_specialeffect(bl, 75, AREA);
            clif_specialeffect(bl, 99, AREA);
            clif_skill_nodamage(bl, bl, skillid, skilllv, sc_start(bl,type,100,skilllv,skill_get_time(skillid,skilllv)));
        }
        break;
    case RL_E_CHAIN:
    case RL_P_ALTER:
    case RL_HEAT_BARREL:
    case KO_MEIKYOUSISUI:
    case RA_UNLIMIT:
    case AB_OFFERTORIUM:
    case ALL_FULL_THROTTLE:
    case SU_ARCLOUSEDASH:
    case SU_FRESHSHRIMP:

3 answers to this question

Recommended Posts

  • 0
Posted

All the cases above odins power will be affected by the effect.

 

SR_GENTLETOUCH_ENERGYGAIN:
    case SR_GENTLETOUCH_CHANGE:
    case SR_GENTLETOUCH_REVITALIZE:
    case GN_CARTBOOST:
    case ALL_ODINS_POWER:
  • 0
Posted
2 minutes ago, crazyarashi said:

All the cases above odins power will be affected by the effect.

 


SR_GENTLETOUCH_ENERGYGAIN:
    case SR_GENTLETOUCH_CHANGE:
    case SR_GENTLETOUCH_REVITALIZE:
    case GN_CARTBOOST:
    case ALL_ODINS_POWER:

so do i have to make sure to put the ALL_ODINS_POWER on the first before everything so it doesn't affect any CASE?

  • 0
Posted

Change it to this:

    case ALL_ODINS_POWER:
        if( sd != NULL )
        {
		if(skill_id == ALL_ODINS_POWER){
           		clif_specialeffect(bl, 75, AREA);
            		clif_specialeffect(bl, 99, AREA);
		}
            clif_skill_nodamage(bl, bl, skillid, skilllv, sc_start(bl,type,100,skilllv,skill_get_time(skillid,skilllv)));
        }
        break;

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...