Skip to content

Commit

Permalink
Added extra conditions for new materialize message
Browse files Browse the repository at this point in the history
  • Loading branch information
IsThatRay committed Oct 21, 2023
1 parent 209514b commit 1ac7a46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ui/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,12 @@ export class UI {

if (activeCreature.player.getNbrOfCreatures() > game.creaLimitNbr) {
$j('#materialize_button p').text(game.msg.ui.dash.materializeOverload);
} else if (activeCreature.player.id !== player) {
} 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);

this.materializeButton.click = () => {
Expand Down

0 comments on commit 1ac7a46

Please sign in to comment.