禁疗状态
This commit is contained in:
@@ -33,6 +33,8 @@ namespace TcgEngine
|
||||
Poisoned = 34, //Lose hp each start of turn
|
||||
Sleep = 36, //Doesnt untap at the start of turn
|
||||
Counterattack = 38, // 允许反击
|
||||
NoTreatment = 39, // 禁疗
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -856,6 +856,9 @@ namespace TcgEngine.Gameplay
|
||||
if (target.HasStatus(StatusType.Invincibility))
|
||||
return;
|
||||
|
||||
if (target.HasStatus(StatusType.NoTreatment)) // 禁疗时不会治疗
|
||||
return;
|
||||
|
||||
target.damage -= value;
|
||||
target.damage = Mathf.Max(target.damage, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user