mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 10:40:13 +01:00
Final update for 2018 release, thanks Fizban for updating shady triggers and WhiskyTest for bug fix
This commit is contained in:
parent
544afc796b
commit
deeb862cde
4 changed files with 82 additions and 49 deletions
12
src/fight.c
12
src/fight.c
|
|
@ -251,6 +251,8 @@ void death_cry(struct char_data *ch)
|
|||
|
||||
void raw_kill(struct char_data * ch, struct char_data * killer)
|
||||
{
|
||||
struct char_data *i;
|
||||
|
||||
if (FIGHTING(ch))
|
||||
stop_fighting(ch);
|
||||
|
||||
|
|
@ -266,8 +268,14 @@ void raw_kill(struct char_data * ch, struct char_data * killer)
|
|||
} else
|
||||
death_cry(ch);
|
||||
|
||||
if (killer)
|
||||
autoquest_trigger_check(killer, ch, NULL, AQ_MOB_KILL);
|
||||
if (killer) {
|
||||
if (killer->group) {
|
||||
while ((i = (struct char_data *) simple_list(killer->group->members)) != NULL)
|
||||
if(IN_ROOM(i) == IN_ROOM(ch) || (world[IN_ROOM(i)].zone == world[IN_ROOM(ch)].zone))
|
||||
autoquest_trigger_check(i, ch, NULL, AQ_MOB_KILL);
|
||||
} else
|
||||
autoquest_trigger_check(killer, ch, NULL, AQ_MOB_KILL);
|
||||
}
|
||||
|
||||
/* Alert Group if Applicable */
|
||||
if (GROUP(ch))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue