Reset first tick on new skill

This commit is contained in:
gentlespoon 2022-05-10 05:00:57 -07:00 committed by Melledy
parent af5b7c6eb6
commit fbffb8d277

View File

@ -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