mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 19:58:13 +08:00
0745863863
- 游戏结束时离线玩家增加逃率 - 退出房间时取消准备状态 - 副技能的 `main_skill` - 预亮相关优化 - 自定义身份,图从拓展包随便找一张 - 无懈可击使用时带1200毫秒延迟 - 未开始的房间显示开启的所有牌堆,衍生牌灰色字体化 - 可以随意打开fk.rep文件并播放录像 - 服务器Shell新增重置密码命令
22 lines
569 B
Lua
22 lines
569 B
Lua
-- SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
GameEvent.functions[GameEvent.SkillEffect] = function(self)
|
|
local effect_cb, player, _skill = table.unpack(self.data)
|
|
local room = self.room
|
|
local logic = room.logic
|
|
local skill = _skill.main_skill and _skill.main_skill or _skill
|
|
|
|
if player then
|
|
player:addSkillUseHistory(skill.name)
|
|
end
|
|
|
|
local cost_data_bak = skill.cost_data
|
|
logic:trigger(fk.SkillEffect, player, skill)
|
|
skill.cost_data = cost_data_bak
|
|
|
|
local ret = effect_cb()
|
|
|
|
logic:trigger(fk.AfterSkillEffect, player, skill)
|
|
return ret
|
|
end
|