UGCProjects/GZJ/Script/Blueprint/Monster/BP_MonsterBreach.lua

25 lines
640 B
Lua
Raw Permalink Normal View History

2025-01-08 22:46:12 +08:00
---@class BP_MonsterBreach_C:BP_ActiveMonsterBase_C
--Edit Below--
-- local BP_MonsterBreach = {};
local MonsterBase = require('Script.Blueprint.Monster.BP_ActiveMonsterBase')
local BP_MonsterBreach = setmetatable(
{
},
{
__index = MonsterBase,
__metatable = MonsterBase
}
);
function BP_MonsterBreach:GetCanDamagePlayer()
if self.TargetPlayerKey > 0 then
local PlayerPawn = UGCGameSystem.GetPlayerPawnByPlayerKey(self.TargetPlayerKey)
if PlayerPawn and PlayerPawn.IsInArena == false then
return {PlayerPawn}
end
end
return {}
end
return BP_MonsterBreach;