2025-01-04 23:00:19 +08:00

21 lines
752 B
Lua
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

local BuffAction_AddHealth = {
BuffColor = {R = 0.4, G = 1., B = 0.1, A = 1.};
--BuffIconPath = UGCGameSystem.GetUGCResourcesFullPath('Asset/Texture/BUFFIcon/T_AddHealth.T_AddHealth');
--BuffParticlePath = UGCGameSystem.GetUGCResourcesFullPath('Asset/FX/P_AddHealth.P_AddHealth');
BuffDesc = "玩家回复一定的生命值";
bEnableTick = true;
bRunOnce = true; -- 是否是只执行一次
PlayerKey = {};
}
function BuffAction_AddHealth:ApplyBuff(BuffTag, ValidPawn, AddHealth)
print(string.format('[BuffAction_AddHealth:ApplyBuff] 执行AddHealth = %s', tostring(AddHealth)));
return true;
end
function BuffAction_AddHealth:GetBenefitPlayer()
return self.PlayerKey;
end
return BuffAction_AddHealth;