Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: battle.c
- ===================================================================
- --- battle.c (revision 17049)
- +++ battle.c (working copy)
- @@ -738,6 +738,11 @@
- nullpo_ret(bl);
- + // emistry - MOBID 1002 immune to skills and only receive 1 damage.
- + if(((TBL_MOB*)bl)->class_== 1002 ){
- + return (( flag&BF_SKILL )? 0:1 );
- + }
- +
- if( !damage )
- return 0;
- if( battle_config.ksprotection && mob_ksprotected(src, bl) )
- @@ -1259,6 +1264,12 @@
- struct mob_data* md = BL_CAST(BL_MOB, bl);
- if( map[bl->m].flag.battleground && (md->class_ == MOBID_BLUE_CRYST || md->class_ == MOBID_PINK_CRYST) && flag&BF_SKILL )
- return 0; // Crystal cannot receive skill damage on battlegrounds
- +
- + // emistry - MOBID 1002 immune to skills and only receive 1 damage.
- + if( md->class_ == 1002 ){
- + return (( flag&BF_SKILL )? 0:1 );
- + }
- +
- }
- switch( skill_num )
- @@ -1300,6 +1311,11 @@
- struct mob_data* md = BL_CAST(BL_MOB, bl);
- int class_ = status_get_class(bl);
- + // emistry - MOBID 1002 immune to skills and only receive 1 damage.
- + if( class_ == 1002 ){
- + return (( flag&BF_SKILL )? 0:1 );
- + }
- +
- if (!damage) //No reductions to make.
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment