Jump to content
  • 0
razermantis

kindly help me with this problem?

Question

kindly help me with this problem? Skill.c


int skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, int64 tick)
{
    struct skill_unit_group *sg;
    struct block_list *ss;
    struct map_session_data *tsd;
    struct status_data *tstatus, *bst;
    struct status_change *tsc, *ssc;
    struct skill_unit_group_tickset *ts;
    enum sc_type type;
    uint16 skill_id;
    int diff=0;
 
    nullpo_ret(src);
    nullpo_ret(bl);
 
    if (bl->prev==NULL || !src->alive || status->isdead(bl))
        return 0;
 
    nullpo_ret(sg=src->group);
    nullpo_ret(ss=map->id2bl(sg->src_id));
    tsd = BL_CAST(BL_PC, bl);
    tsc = status->get_sc(bl);
    ssc = status->get_sc(ss); // Status Effects for Unit caster.
 
    // Maestro or Wanderer is unaffected by traps of trappers he or she charmed [superHulk]
    if ( ssc && ssc->data[sC_SIREN] && ssc->data[sC_SIREN]->val2 == bl->id && (skill->get_inf2(sg->skill_id)&INF2_TRAP) )
        return 0;
 
    tstatus = status->get_status_data(bl);
    nullpo_ret(tstatus);
    bst = status->get_base_status(bl);
    nullpo_ret(bst);
    type = status->skill2sc(sg->skill_id);
    skill_id = sg->skill_id;
 
    if ( tsc && tsc->data[sC_HOVERING] ) {
        switch ( skill_id ) {
        case HT_SKIDTRAP:
        case HT_LANDMINE:
        case HT_ANKLESNARE:
        case HT_FLASHER:
        case HT_SHOCKWAVE:
        case HT_SANDMAN:
        case HT_FREEZINGTRAP:
        case HT_BLASTMINE:
        case HT_CLAYMORETRAP:
        case HW_GRAVITATION:
        case SA_DELUGE:
        case SA_VOLCANO:
        case SA_VIOLENTGALE:
        case NJ_SUITON:
            return 0;
        }

post-14742-0-45162300-1484109238_thumb.png

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.