• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[TFS 1.5 Nekiro 8.60] Problem with Spell Cooldown after Spell Groups

Aquan

New Member
Joined
Jan 27, 2021
Messages
8
Reaction score
1
Hi, I need help with a problem in the downgraded TFS 1.5 (8.60 nekiro).
My engine seems to completely ignore the group setting in spells.xml.

Example:

Spell “utana vid” is assigned to group support

Spell “exura” is assigned to group healing

When I use utana vid, I correctly get a cooldown for the support group.
However, when I try to use exura right after, I still get cooldown — even though healing and support should be separate groups.

So it looks like the engine is treating all groups as one, or simply not reading the group attribute at all.

I am using:

TFS 1.5

8.60 downgrade (nekiro)

Clean, unmodified spells.xml (groups set properly)

Does anyone know how to fix the issue where spells ignore their assigned groups?
Any known patch for nekiro’s downgrade related to onCast, group, or cooldown handling?

Thank you for any help.
 
Hi, I need help with a problem in the downgraded TFS 1.5 (8.60 nekiro).
My engine seems to completely ignore the group setting in spells.xml.

Example:

Spell “utana vid” is assigned to group support

Spell “exura” is assigned to group healing

When I use utana vid, I correctly get a cooldown for the support group.
However, when I try to use exura right after, I still get cooldown — even though healing and support should be separate groups.

So it looks like the engine is treating all groups as one, or simply not reading the group attribute at all.

I am using:

TFS 1.5

8.60 downgrade (nekiro)

Clean, unmodified spells.xml (groups set properly)

Does anyone know how to fix the issue where spells ignore their assigned groups?
Any known patch for nekiro’s downgrade related to onCast, group, or cooldown handling?

Thank you for any help.
Hi brother , have a nice day!
Try this fix. The problem happens because Nekiro’s 8.60 downgrade doesn’t correctly separate spell-groups, so every spell is affected by a global cooldown instead of per-group cooldown. You can fix it by forcing TFS to use cooldown per spell-group.

Make sure each spell has the correct group, for example:
<spell name="Exura" words="exura" group="healing" cooldown="1000" />
<spell name="Utana Vid" words="utana vid" group="support" cooldown="2000" />

If the groups are correct and the cooldown still overlaps → the bug is in the source.

_________________________________________________________
Step 2 — Source Fix (spells.cpp)

Add or replace this code so cooldown is handled per group, not global.

1. add in player.h:

std::unordered_map<std::string, uint32_t> spellGroupCooldowns;

2. In player.cpp add these functions:

bool Player::hasSpellGroupCooldown(const std::string& group) {
auto it = spellGroupCooldowns.find(group);
if (it != spellGroupCooldowns.end() && it->second > OTSYS_TIME()) {
return true;
}
return false;
}

void Player::addSpellGroupCooldown(const std::string& group, uint32_t cooldown) {
spellGroupCooldowns[group] = OTSYS_TIME() + cooldown;
}

3. In spells.cpp inside spell execution, replace cooldown check with:

if (player->hasSpellGroupCooldown(spell->group)) {
player->sendCancelMessage("You are exhausted.");
return false;
}
player->addSpellGroupCooldown(spell->group, spell->cooldown);

I hope this helps.
 
Hi, I need help with a problem in the downgraded TFS 1.5 (8.60 nekiro).
My engine seems to completely ignore the group setting in spells.xml.

Example:

Spell “utana vid” is assigned to group support

Spell “exura” is assigned to group healing

When I use utana vid, I correctly get a cooldown for the support group.
However, when I try to use exura right after, I still get cooldown — even though healing and support should be separate groups.

So it looks like the engine is treating all groups as one, or simply not reading the group attribute at all.

I am using:

TFS 1.5

8.60 downgrade (nekiro)

Clean, unmodified spells.xml (groups set properly)

Does anyone know how to fix the issue where spells ignore their assigned groups?
Any known patch for nekiro’s downgrade related to onCast, group, or cooldown handling?

Thank you for any help.
Someone opened a PR, I reviewed it and tested it, and it’s working fine. If you want, you can take a look at it and apply it to your sources. Enjoy!

 

Similar threads

Back
Top