Skip to content

Commit

Permalink
Prevent ConsumeSpell if killing Golem with cast
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Mar 7, 2024
1 parent ab9bade commit 56411f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/spells.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ int GetManaAmount(const Player &player, SpellID sn)

void ConsumeSpell(Player &player, SpellID sn)
{
Monster &golem = Monsters[player.getId()];

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

0 comments on commit 56411f1

Please sign in to comment.