TitanRO / Issues

0 stars 0 forks source link

Safety Wall not working on emperium #197

Open trojal opened 5 years ago

trojal commented 5 years ago

It appears that safety wall isn't blocking attacks on emperium during WoE.

Based on this code, it looks specifically like Safetywall and Pneuma should work on emp:

        if (bl->type == BL_MOB) {
                struct mob_data *md = BL_CAST(BL_MOB, bl);
                if (md && (md->class_ == MOBID_EMPELIUM || mob_is_battleground(md)) && type != SC_SAFETYWALL && type != SC_PNEUMA)
                        return 0; //Emperium/BG Monsters can't be afflicted by status changes
#if 0
                if (md && mob_is_gvg(md) && status->sc2scb_flag(type)&SCB_MAXHP)
                        return 0; //prevent status addinh hp to gvg mob (like bloodylust=hp*3 etc...
#endif // 0
        }