Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
IsThatRay committed Oct 21, 2023
1 parent 1ac7a46 commit 2c2910c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -949,14 +949,17 @@ export class UI {

if (activeCreature.player.getNbrOfCreatures() > game.creaLimitNbr) {
$j('#materialize_button p').text(game.msg.ui.dash.materializeOverload);
} else if (
}
// Check if the player is viewing the wrong tab
else if (
activeCreature.player.id !== player &&
activeCreature.isDarkPriest() &&
activeCreature.abilities[3].testRequirements() &&
activeCreature.abilities[3].used === false
) {
$j('#materialize_button p').text(game.msg.ui.dash.wrongPlayer);

// Switch to turn player's dark priest
this.materializeButton.click = () => {
this.showCreature("--", activeCreature.player.id);
};
Expand Down

0 comments on commit 2c2910c

Please sign in to comment.