viewing paste Devotion fix | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13
// perform skill-specific checks (and actions)
        switch( skill )
        {
        case CR_DEVOTION: {
                int i = 0;
                ARR_FIND(0, 5, i, sd->devotion[i] == NULL);
                if(i >= lv){
                clif_displaymessage(sd->fd, "All you devo slot are full");
                clif_skill_fail(sd,skill,0,0);
                        return 0;
                }
        }
                break;
Viewed 362 times, submitted by lighta.