25 lines
640 B
Lua
25 lines
640 B
Lua
---@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; |