Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] New Power Cooldown forceChanges #433

Open
engineer1109 opened this issue Apr 21, 2020 · 3 comments
Open

[Suggestion] New Power Cooldown forceChanges #433

engineer1109 opened this issue Apr 21, 2020 · 3 comments

Comments

@engineer1109
Copy link

功能请求

你的功能请求是否和一个问题有关?如果是,请在此描述

强制改变自身或被击中玩家的所有技能的剩余冷却时间,
比如玩家持有1个火球发射器,被使用了这个power后,冷却时间强制修改到200秒。

你的想法

checkAndSetCooldown 能不能被利用实现这个目标,
这个函数一直被隐含在各种power里。

@ReinWD
Copy link
Contributor

ReinWD commented Apr 29, 2020

用cooldownKey系统试一下?

@engineer1109
Copy link
Author

@ReinWD cooldownKey有什么用,我看见只有dummy用到了

if (!checkAndSetCooldown(getPower(), player, getCooldown(), isShowCDWarning(), false, (isGlobalCooldown() ? "" : (getItem().getUid() + ".")) + getCooldownKey()))
return PowerResult.of(getCooldownResult());

@Clexus
Copy link
Collaborator

Clexus commented Sep 20, 2024

不知道当时是怎么样的,现在应该可以用了吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants