1
This commit is contained in:
parent
86b9092ecf
commit
807925f7af
@ -26,6 +26,9 @@ void AndroidAI::Update(int delta_time)
|
|||||||
if (HumMaster()->playing_skill) {
|
if (HumMaster()->playing_skill) {
|
||||||
HumMaster()->UpdateSkill();
|
HumMaster()->UpdateSkill();
|
||||||
}
|
}
|
||||||
|
if (a8::HasBitFlag(HumMaster()->status, HS_Assaulting)) {
|
||||||
|
HumMaster()->_UpdateAssaultMove();
|
||||||
|
}
|
||||||
switch (state_) {
|
switch (state_) {
|
||||||
case AS_thinking:
|
case AS_thinking:
|
||||||
{
|
{
|
||||||
@ -160,7 +163,7 @@ void AndroidAI::DoMove()
|
|||||||
if (HumMaster()->HasBuffEffect(kBET_Vertigo) || HumMaster()->HasBuffEffect(kBET_Dcgr)) {
|
if (HumMaster()->HasBuffEffect(kBET_Vertigo) || HumMaster()->HasBuffEffect(kBET_Dcgr)) {
|
||||||
return;
|
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());
|
int speed = std::max(1, (int)HumMaster()->GetSpeed());
|
||||||
for (int i = 0; i < speed; ++i) {
|
for (int i = 0; i < speed; ++i) {
|
||||||
a8::Vec2 old_pos = HumMaster()->pos;
|
a8::Vec2 old_pos = HumMaster()->pos;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user