This commit is contained in:
aozhiwei 2019-07-24 11:27:10 +08:00
parent 86b9092ecf
commit 807925f7af

View File

@ -26,6 +26,9 @@ void AndroidAI::Update(int delta_time)
if (HumMaster()->playing_skill) {
HumMaster()->UpdateSkill();
}
if (a8::HasBitFlag(HumMaster()->status, HS_Assaulting)) {
HumMaster()->_UpdateAssaultMove();
}
switch (state_) {
case AS_thinking:
{
@ -160,7 +163,7 @@ void AndroidAI::DoMove()
if (HumMaster()->HasBuffEffect(kBET_Vertigo) || HumMaster()->HasBuffEffect(kBET_Dcgr)) {
return;
}
if (owner->updated_times % 2 == 0) {
if (owner->updated_times % 2 == 0 && !a8::HasBitFlag(HumMaster()->status, HS_Assaulting)) {
int speed = std::max(1, (int)HumMaster()->GetSpeed());
for (int i = 0; i < speed; ++i) {
a8::Vec2 old_pos = HumMaster()->pos;