Hi,
i want to have a mob, that will get no damage by skills.
I tried this: http://www.eathena.w...ndpost&p=927155
And I tried using parts of the function battle_calc_gvg_damage (in src/map/battle.c):
int battle_calc_damage(struct block_list *src,struct block_list *bl,struct Damage *d,int damage,int skill_num,int skill_lv)
{
struct map_session_data *sd = NULL;
struct status_change *sc;
struct status_change_entry *sce;
int div_ = d->div_, flag = d->flag;
//## Mob-Skillimmune START
int class_ = status_get_class(bl);
//## Mob-Skillimmune END
nullpo_ret(bl);
if( !damage )
return 0;
//## Mob-Skillimmune START
if (class_ == 2993 && flag&BF_SKILL)
return 0;
//## Mob-Skillimmune END
if( mob_ksprotected(src, bl) )
return 0;
But the special mob (ID 2993) gets still damage from skills like Jupitel Thunder.
Does anyone have a idea to make this mob immune to all skills?