OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions
Conditions.h File Reference
#include <array>
#include "Engine/Objects/CharacterEnums.h"

Functions

bool blockCondition (Character *character, Condition condition)
 
const std::array< Condition, 18 > & conditionImportancyTable ()
 

Function Documentation

◆ blockCondition()

bool blockCondition ( Character character,
Condition  condition 
)
Parameters
characterCharacter that's about to receive a condition.
conditionCondition in question.
Returns
Whether the condition was successfully blocked, either by protection from magic spell, or by an item. In the former case, this function will decrement the protection from magic counter & expire the buff if the counter reaches zero.

◆ conditionImportancyTable()

const std::array< Condition, 18 > & conditionImportancyTable ( )