Skip to content

Commit

Permalink
Fix no consume when killing golem
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Mar 7, 2024
1 parent 56411f1 commit 1a3dade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/spells.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void ConsumeSpell(Player &player, SpellID sn)
{
Monster &golem = Monsters[player.getId()];

if (golem.position.tile != GolemHoldingCell && &player == MyPlayer)
if (golem.hitPoints <= 0 && &player == MyPlayer)
return;
switch (player.executedSpell.spellType) {
case SpellType::Skill:
Expand Down

0 comments on commit 1a3dade

Please sign in to comment.