mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 00:06:02 +00:00
移动不再计算硬直
This commit is contained in:
parent
ccf09b478e
commit
13a6adb41b
@ -1263,12 +1263,10 @@ namespace Milimoe.FunGame.Core.Model
|
||||
{
|
||||
if (_map != null)
|
||||
{
|
||||
baseTime += 4;
|
||||
Grid target = await SelectTargetGridAsync(character, enemys, teammates, _map);
|
||||
if (target.Id != -1)
|
||||
{
|
||||
int steps = _map.CharacterMove(character, currentGrid, target);
|
||||
if (steps > 4) baseTime += 0.7 * steps;
|
||||
moved = true;
|
||||
WriteLine($"[ {character} ] 移动了 {steps} 步!");
|
||||
await OnCharacterMoveAsync(character, target);
|
||||
@ -2942,6 +2940,13 @@ namespace Milimoe.FunGame.Core.Model
|
||||
/// <param name="skill"></param>
|
||||
public async Task SetCharacterPreCastSuperSkill(Character character, Skill skill)
|
||||
{
|
||||
if (character.CharacterState == CharacterState.Casting)
|
||||
{
|
||||
_castingSkills.Remove(character);
|
||||
character.CharacterState = CharacterState.Actionable;
|
||||
character.UpdateCharacterState();
|
||||
WriteLine("[ " + character + " ] 取消吟唱。");
|
||||
}
|
||||
if (character.CharacterState == CharacterState.Actionable)
|
||||
{
|
||||
_castingSuperSkills[character] = skill;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user