From ae38ad9f1d5b48760cfe7461bbfdce1443aa5e4b Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 17 Jun 2018 04:07:05 +1000 Subject: [PATCH] Use it in mage code too --- qcsrc/common/monsters/monster/mage.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/monsters/monster/mage.qc b/qcsrc/common/monsters/monster/mage.qc index cbc6c5f06..b26328a54 100644 --- a/qcsrc/common/monsters/monster/mage.qc +++ b/qcsrc/common/monsters/monster/mage.qc @@ -257,7 +257,7 @@ void M_Mage_Defend_Heal(entity this) break; case 3: float hp = ((it == this) ? autocvar_g_monster_mage_heal_self : autocvar_g_monster_mage_heal_allies); - SetResourceAmount(it, RESOURCE_HEALTH, GetResourceAmount(it, RESOURCE_HEALTH) - hp); // TODO: use regular damage functions? needs a way to bypass friendly fire checks + TakeResource(it, RESOURCE_HEALTH, hp); // TODO: use regular damage functions? needs a way to bypass friendly fire checks fx = EFFECT_RAGE; break; } -- 2.39.2