yuhsing

Untitled

Feb 22nd, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. Index: battle.c
  2. ===================================================================
  3. --- battle.c (revision 17049)
  4. +++ battle.c (working copy)
  5. @@ -738,6 +738,11 @@
  6.  
  7. nullpo_ret(bl);
  8.  
  9. + // emistry - MOBID 1002 immune to skills and only receive 1 damage.
  10. + if(((TBL_MOB*)bl)->class_== 1002 ){
  11. + return (( flag&BF_SKILL )? 0:1 );
  12. + }
  13. +
  14. if( !damage )
  15. return 0;
  16. if( battle_config.ksprotection && mob_ksprotected(src, bl) )
  17. @@ -1259,6 +1264,12 @@
  18. struct mob_data* md = BL_CAST(BL_MOB, bl);
  19. if( map[bl->m].flag.battleground && (md->class_ == MOBID_BLUE_CRYST || md->class_ == MOBID_PINK_CRYST) && flag&BF_SKILL )
  20. return 0; // Crystal cannot receive skill damage on battlegrounds
  21. +
  22. + // emistry - MOBID 1002 immune to skills and only receive 1 damage.
  23. + if( md->class_ == 1002 ){
  24. + return (( flag&BF_SKILL )? 0:1 );
  25. + }
  26. +
  27. }
  28.  
  29. switch( skill_num )
  30. @@ -1300,6 +1311,11 @@
  31. struct mob_data* md = BL_CAST(BL_MOB, bl);
  32. int class_ = status_get_class(bl);
  33.  
  34. + // emistry - MOBID 1002 immune to skills and only receive 1 damage.
  35. + if( class_ == 1002 ){
  36. + return (( flag&BF_SKILL )? 0:1 );
  37. + }
  38. +
  39. if (!damage) //No reductions to make.
  40. return 0;
Advertisement
Add Comment
Please, Sign In to add comment