Changeset 24 for src/map/mob.c

Show
Ignore:
Timestamp:
07/07/08 22:48:26 (17 years ago)
Author:
jinshiro
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/map/mob.c

    r19 r24  
    20262026                        break; 
    20272027                //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                } 
    20372036 
    20382037                else 
     
    25562555                mob_script_callback(md, src, CALLBACK_DEAD); 
    25572556        else 
    2558         if(md->npc_event[0] && !md->npc_killmonster) 
     2557        if(md->npc_event[0] && !md->state.npc_killmonster) 
    25592558        { 
    25602559                md->status.hp = 0; //So that npc_event invoked functions KNOW that I am dead. 
     
    28362835} 
    28372836 
     2837//Weird structure, is this in the right place? 
    28382838/// Count slaves with a certain master and class. by FlavioJS [Brain] 
    28392839static int mob_countslave_class_sub(struct block_list* bl, va_list ap) 
     
    28512851        if( md->master_id == id ) 
    28522852        {// 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                } 
    28592859        } 
    28602860        return 0; 
     
    40334033                "mob_boss.txt", 
    40344034                "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. 
    40374037 
    40384038        memset(&summon, 0, sizeof(summon));