禁疗状态

This commit is contained in:
xianyi
2025-09-01 15:41:17 +08:00
parent 4adfba03f3
commit 6d40a8075f
9 changed files with 131 additions and 1 deletions

View File

@@ -36,7 +36,9 @@ namespace TcgEngine
{
if (type == EffectStatType.Attack)
target.attack += ability.value;
if (type == EffectStatType.HP)
if (type == EffectStatType.HP)
if (target.HasStatus(StatusType.NoTreatment)) // 禁疗时不会增加hp
return;
target.hp += ability.value;
if (type == EffectStatType.Mana)
target.mana += ability.value;