viewing paste Unknown #19629 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
 
bool battle_can_hit_gvg_target(struct block_list *src,struct block_list *bl,uint16 skill_id,int flag)
{
    struct mob_data* md = BL_CAST(BL_MOB, bl);
    int class_ = status_get_class(bl);
 
    if(md && md->guardian_data) {
        if(class_ == MOBID_EMPERIUM && flag&BF_SKILL && !(skill_get_inf3(skill_id)&INF3_HIT_EMP)) //Skill immunity.
            return false;
        if(src->type != BL_MOB) {
            struct guild *g = src->type == BL_PC ? ((TBL_PC *)src)->guild : guild_search(status_get_guild_id(src));
 
            if (class_ == MOBID_EMPERIUM && (!g || guild_checkskill(g,GD_APPROVAL) <= 0 ))
                return false;
 
            if (g && battle_config.guild_max_castles && guild_checkcastles(g)>=battle_config.guild_max_castles)
                return false; // [MouseJstr]
        }
    }
    return true;
}
 
 
This is from line  1424 TO  1443
Viewed 779 times, submitted by Guest.