Fixed Emperium attack checks for slaveclones

Fixes #1890
This commit is contained in:
Lemongrass3110 2017-01-17 20:02:57 +01:00
parent 60652e2001
commit 7416ad79fd

View File

@ -1620,7 +1620,7 @@ bool battle_can_hit_gvg_target(struct block_list *src,struct block_list *bl,uint
if(md && md->guardian_data) {
if ((status_bl_has_mode(bl,MD_SKILL_IMMUNE) || (class_ == MOBID_EMPERIUM && !(skill_get_inf3(skill_id)&INF3_HIT_EMP))) && flag&BF_SKILL) //Skill immunity.
return false;
if(src->type != BL_MOB) {
if( src->type != BL_MOB || mob_is_clone( ((struct mob_data*)src)->mob_id ) ){
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 ))