1
This commit is contained in:
commit
f56424c5d9
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
void Skill::Initialzie()
|
void Skill::Initialzie()
|
||||||
{
|
{
|
||||||
|
curr_times_ = GetMaxTimes();
|
||||||
switch (meta->i->skill_type()) {
|
switch (meta->i->skill_type()) {
|
||||||
case kActiveSkill:
|
case kActiveSkill:
|
||||||
{
|
{
|
||||||
@ -135,8 +136,11 @@ void Skill::NotifySkillState()
|
|||||||
|
|
||||||
void Skill::ResetSkillCd()
|
void Skill::ResetSkillCd()
|
||||||
{
|
{
|
||||||
curr_times_ = 0;
|
if (meta->i->skill_id() != TURN_OVER_SKILL_ID) {
|
||||||
if (inc_times_timer_) {
|
curr_times_ = 0;
|
||||||
owner->room->xtimer.ModifyTimer(inc_times_timer_, GetCd() / FRAME_RATE_MS);
|
if (inc_times_timer_) {
|
||||||
|
owner->room->xtimer.ModifyTimer(inc_times_timer_, GetCd() / FRAME_RATE_MS);
|
||||||
|
NotifySkillState();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user