I'm trying to edit the NPC_SELFDESTRUCTION skill to not hurt friendly players/mobs. However, I don't want to cause anymore unnessary errors since I don't currently have a test server going? Will just removing the BCT_ALL make it only affect the enemy or is there more to it? Should I just make the a NPC_SELFDESTRUCTION2 and modifty that?
case NPC_SELFDESTRUCTION:
//Self Destruction hits everyone in range (allies+enemies)
//Except for Summoned Marine spheres on non-versus maps, where it's just enemy.
i = ((!md || md->special_state.ai == 2) && !map_flag_vs(src->m))?
BCT_ENEMY:BCT_ALL;
clif_skill_nodamage(src, src, skillid, -1, 1);
map_delblock(src); //Required to prevent chain-self-destructions hitting back.
map_foreachinrange(skill_area_sub, bl,
skill_get_splash(skillid, skilllv), splash_target(src),
src, skillid, skilllv, tick, flag|i,
skill_castend_damage_id);
map_addblock(src);
status_damage(src, src, sstatus->max_hp,0,0,1);
break;
Peopleperson49