Changeset 24 for src/map/mob.c
- Timestamp:
- 07/07/08 22:48:26 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
src/map/mob.c
r19 r24 2026 2026 break; 2027 2027 //Let players decide whether to retaliate versus the master or the mob. [Skotlex] 2028 /*if (md2->master_id && battle_config.retaliate_to_master) 2029 md->attacked_id = md2->master_id;*/ 2030 if (md2->master_id && battle_config.retaliate_to_master) 2031 { 2032 //necro_retaliation config (same as above, but only works for adept/necro/warlock summons) [Brainstorm] 2033 if(!battle_config.necro_retaliation && (md2->class_ >= 3100 && md2->class_ <= 3235)) 2034 md->attacked_id = src->id; 2035 else md->attacked_id = md2->master_id; //All normal summons 2036 } 2028 if (md2->master_id && battle_config.retaliate_to_master) 2029 //this is odd... does that mean if you have a pet out it will get attecked instead of you? 2030 { 2031 //necro_retaliation config (same as above, but only works for adept/necro/warlock summons) [Brainstorm] 2032 if(!battle_config.necro_retaliation && (md2->class_ >= 3100 && md2->class_ <= 3235)) 2033 md->attacked_id = src->id; 2034 else md->attacked_id = md2->master_id; //All normal summons 2035 } 2037 2036 2038 2037 else … … 2556 2555 mob_script_callback(md, src, CALLBACK_DEAD); 2557 2556 else 2558 if(md->npc_event[0] && !md-> npc_killmonster)2557 if(md->npc_event[0] && !md->state.npc_killmonster) 2559 2558 { 2560 2559 md->status.hp = 0; //So that npc_event invoked functions KNOW that I am dead. … … 2836 2835 } 2837 2836 2837 //Weird structure, is this in the right place? 2838 2838 /// Count slaves with a certain master and class. by FlavioJS [Brain] 2839 2839 static int mob_countslave_class_sub(struct block_list* bl, va_list ap) … … 2851 2851 if( md->master_id == id ) 2852 2852 {// has the correct master 2853 int i;2854 for( i = 0; i < count; ++i )2855 {2856 if( md->class_ == classes[i] )2857 return 1;2858 }2853 int i; 2854 for( i = 0; i < count; ++i ) 2855 { 2856 if( md->class_ == classes[i] ) 2857 return 1; 2858 } 2859 2859 } 2860 2860 return 0; … … 4033 4033 "mob_boss.txt", 4034 4034 "mob_pouch.txt", 4035 "mob_familiar.txt" 4036 };4035 "mob_familiar.txt" // familiar By FlavioJS [Brain] 4036 };//mob_familiar.txt make sure the name is right. 4037 4037 4038 4038 memset(&summon, 0, sizeof(summon));