Skip to content

Commit

Permalink
* torch no degrade while shapeshifted
Browse files Browse the repository at this point in the history
  • Loading branch information
WALL OF JUSTICE committed Aug 29, 2023
1 parent 8bb1d9e commit eb2a3b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3817,7 +3817,11 @@ void Entity::handleEffects(Stat* myStats)
if ( (this->char_torchtime >= 7500 && myStats->shield->type == TOOL_TORCH) || (this->char_torchtime >= 10500) )
{
this->char_torchtime = 0;
if ( myStats->shield->type == TOOL_TORCH && player >= 0 )
if ( behavior == &actPlayer && effectShapeshift != NOTHING )
{
// do nothing, shapeshifted
}
else if ( myStats->shield->type == TOOL_TORCH && player >= 0 )
{
std::string itemName = myStats->shield->getName();
ItemType itemType = myStats->shield->type;
Expand Down

0 comments on commit eb2a3b0

Please sign in to comment.