mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-07 03:07:45 +00:00
Add statuseffect cost type
This commit is contained in:
parent
995bce495d
commit
390a53a6c6
2 changed files with 12 additions and 0 deletions
|
@ -938,6 +938,7 @@ namespace Sapphire::Common
|
|||
MagicPoints = 3,
|
||||
TacticsPoints = 5,
|
||||
TacticsPoints1 = 6,
|
||||
StatusEffect = 10,
|
||||
Sprint = 18,
|
||||
// WARGauge = 22,
|
||||
// DRKGauge = 25,
|
||||
|
|
|
@ -783,6 +783,17 @@ bool Action::Action::primaryCostCheck( bool subtractCosts )
|
|||
return true;
|
||||
}
|
||||
|
||||
case Common::ActionPrimaryCostType::StatusEffect:
|
||||
{
|
||||
if( !m_pSource->hasStatusEffect( m_primaryCost ) )
|
||||
return false;
|
||||
|
||||
if( subtractCosts )
|
||||
m_pSource->removeSingleStatusEffectById( m_primaryCost );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// free casts, likely just pure ogcds
|
||||
case Common::ActionPrimaryCostType::None:
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue