1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 15:17:46 +00:00

fix build

This commit is contained in:
Tahir 2024-05-09 17:16:18 +01:00
parent 342c30aa43
commit 959df68b63
2 changed files with 3 additions and 3 deletions

View file

@ -142,7 +142,7 @@ namespace Sapphire
PhaseCondition::from_json( json, phase, conditionId );
auto paramData = json.at( "paramData" );
auto actorRef = paramData.at( "sourceActor" );
auto actorRef = paramData.at( "sourceActor" ).get< std::string >();
// resolve the actor whose hp we are checking
if( auto it = actors.find( actorRef ); it != actors.end() )

View file

@ -432,7 +432,7 @@ namespace Sapphire
}
else if( pCondition->inProgress() )
{
pCondition->execute( pFight, time );
pCondition->update( pFight, time );
}
else if( pCondition->isConditionMet( pFight, time ) )
{