You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void Witch::use(enum potion potion, Player *playerID)
{
if (myGame.getDaytime() == Game::night && validAction(playerID) && potionAvailable[potion] && myGame.getNightCount() > 1) //using potions in the first night is prohibited
{
currentPotion = potion;
target = playerID;
switch (potion)
{
case deathPotion:
potionAvailable[potion] = false;
break;
case shieldPotion:
//set protect value, like bodyguard shield only destroyed if player was attacked