mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 16:16:46 +00:00
Reset first tick on new skill
This commit is contained in:
parent
af5b7c6eb6
commit
fbffb8d277
@ -127,6 +127,7 @@ public class StaminaManager {
|
||||
// Accessors
|
||||
|
||||
public void setSkillCast(int skillId, int skillCasterId) {
|
||||
lastSkillFirstTick = true;
|
||||
lastSkillId = skillId;
|
||||
lastSkillCasterId = skillCasterId;
|
||||
}
|
||||
@ -460,10 +461,10 @@ public class StaminaManager {
|
||||
}};
|
||||
if (talentMovementConsumptions.containsKey(skillCasting)) {
|
||||
if (lastSkillFirstTick) {
|
||||
consumption = talentMovementConsumptions.get(skillCasting).get(1);
|
||||
consumption = talentMovementConsumptions.get(skillCasting).get(0);
|
||||
} else {
|
||||
lastSkillFirstTick = false;
|
||||
consumption = talentMovementConsumptions.get(skillCasting).get(0);
|
||||
consumption = talentMovementConsumptions.get(skillCasting).get(1);
|
||||
}
|
||||
}
|
||||
// TODO: Claymore avatar charged attack
|
||||
|
Loading…
Reference in New Issue
Block a user