Skip to content
Snippets Groups Projects
Commit 0f134151 authored by gentlespoon's avatar gentlespoon Committed by Melledy
Browse files

Reset first tick on new skill

parent e9f7b0df
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment