Skip to content

Commit

Permalink
Familiars dying will unsummon (#3547)
Browse files Browse the repository at this point in the history
Also fixed the unsummon effect for new player colors
  • Loading branch information
Loobinex authored Oct 12, 2024
1 parent 97902cd commit 1fd1a6e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/thing_creature.c
Original file line number Diff line number Diff line change
Expand Up @@ -2879,6 +2879,13 @@ struct Thing* kill_creature(struct Thing *creatng, struct Thing *killertng, Play
if (creature_affected_by_spell(creatng, SplK_Rebound)) {
terminate_thing_spell_effect(creatng, SplK_Rebound);
}
struct CreatureControl* cctrl = creature_control_get_from_thing(creatng);
if ((cctrl->unsummon_turn > 0) && (cctrl->unsummon_turn > game.play_gameturn))
{
create_effect_around_thing(creatng, ball_puff_effects[creatng->owner]);
set_flag(flags, CrDed_NotReallyDying | CrDed_NoEffects);
return cause_creature_death(creatng, flags);
}
struct Dungeon* dungeon = (!is_neutral_thing(creatng)) ? get_players_num_dungeon(creatng->owner) : INVALID_DUNGEON;
if (!dungeon_invalid(dungeon))
{
Expand Down

0 comments on commit 1fd1a6e

Please sign in to comment.