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