mirror of
https://gitlab.com/YuukiPS/GC-Resources.git
synced 2025-04-28 09:05:26 +00:00
simpel fix battale scaramouche
This commit is contained in:
parent
b09934e7b9
commit
0c40355670
@ -15,12 +15,6 @@ local bossMonsterId=
|
||||
29070105
|
||||
}
|
||||
|
||||
-- 打印日志
|
||||
function PrintLog(context, content)
|
||||
local log = "## [Boss_Battle_Process_Scaramouche] TD: "..content
|
||||
ScriptLib.PrintContextLog(context, log)
|
||||
end
|
||||
|
||||
local extraTriggers =
|
||||
{
|
||||
{ config_id = 40000001, name = "monster_die", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE", trigger_count = 0 },
|
||||
@ -69,7 +63,7 @@ function action_EVENT_TIME_AXIS_PASS(context, evt)
|
||||
end
|
||||
end
|
||||
ScriptLib.InitTimeAxis(context,"YAxisCheck",{5},true)
|
||||
PrintLog(context, "没找到传送目标点")
|
||||
ScriptLib.PrintContextLog(context, "没找到传送目标点")
|
||||
end
|
||||
if evt.source_name=="ShowReminder" then
|
||||
local uidList=ScriptLib.GetSceneUidList(context)
|
||||
@ -126,10 +120,11 @@ function action_EVENT_ENTER_REGION(context, evt)
|
||||
end
|
||||
|
||||
function action_EVENT_ANY_MONSTER_LIVE(context, evt)
|
||||
--进入方法的log
|
||||
PrintLog(context, "monster alive:"..evt.param1)
|
||||
ScriptLib.PrintContextLog(context, "monster alive:"..evt.param1)
|
||||
local monsterEntityId=ScriptLib.GetEntityIdByConfigId(context, evt.param1)
|
||||
ScriptLib.PrintContextLog(context, "GetEntityIdByConfigId: "..monsterEntityId)
|
||||
local monsterId=ScriptLib.GetMonsterIdByEntityId(context, monsterEntityId)
|
||||
ScriptLib.PrintContextLog(context, "GetMonsterIdByEntityId :"..monsterId)
|
||||
if LF_IsBossMonster(context,monsterId) then
|
||||
ScriptLib.SetEntityServerGlobalValueByConfigId(context, evt.param1, "SGV_MONSTER_NADA", 1)
|
||||
end
|
||||
|
@ -4,7 +4,7 @@ local base_info = {
|
||||
}
|
||||
|
||||
-- Trigger变量
|
||||
local defs = {
|
||||
defs = {
|
||||
transTarget = 1004,
|
||||
phaseOneBoss = 1001,
|
||||
phaseTwoBoss = 1002,
|
||||
|
Loading…
x
Reference in New Issue
Block a user