mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 17:05:20 +01:00
Make energy usage configurable, and preserve current behavior as the default.
This commit is contained in:
@@ -621,6 +621,10 @@ public class TeamManager {
|
||||
}
|
||||
|
||||
public void handleEvtDoSkillSuccNotify(GameSession session, int skillId, int casterId) {
|
||||
if (!GAME_OPTIONS.energyUsage) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Determine the entity that has cast the skill.
|
||||
Optional<EntityAvatar> caster = this.getActiveTeam().stream()
|
||||
.filter(character -> character.getId() == casterId)
|
||||
|
||||
Reference in New Issue
Block a user