1
This commit is contained in:
parent
6dfb750f09
commit
93a60f2f7f
@ -127,7 +127,8 @@ void Android::InternalUpdate(int delta_time)
|
|||||||
room->grid_service->MoveCreature(this);
|
room->grid_service->MoveCreature(this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (GetMovement()->GetPathSize() > 0) {
|
if (GetMovement()->GetPathSize() > 0 ||
|
||||||
|
HasBuffEffect(kBET_Sprint)) {
|
||||||
Global::Instance()->verify_set_pos = 1;
|
Global::Instance()->verify_set_pos = 1;
|
||||||
UpdateMove();
|
UpdateMove();
|
||||||
#ifdef DEBUG1
|
#ifdef DEBUG1
|
||||||
|
@ -312,9 +312,15 @@ bool BaseAgent::CanUseSkill(int skill_id)
|
|||||||
|
|
||||||
int BaseAgent::GetUseableSkill(Creature* target)
|
int BaseAgent::GetUseableSkill(Creature* target)
|
||||||
{
|
{
|
||||||
|
if (!target->IsPlayer()) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
if (GetOwner()->IsHuman()) {
|
if (GetOwner()->IsHuman()) {
|
||||||
Skill* skill = GetOwner()->GetMainSkill();
|
Skill* skill = GetOwner()->GetMainSkill();
|
||||||
if (skill && GetOwner()->CanUseSkill(skill->GetSkillId())) {
|
if (skill && GetOwner()->CanUseSkill(skill->GetSkillId())) {
|
||||||
|
if (skill->GetMinorType()) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
return skill->GetSkillId();
|
return skill->GetSkillId();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,7 @@ void SprintBuff::Activate()
|
|||||||
|
|
||||||
void SprintBuff::Deactivate()
|
void SprintBuff::Deactivate()
|
||||||
{
|
{
|
||||||
|
int i = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SprintBuff::SprintMove()
|
void SprintBuff::SprintMove()
|
||||||
|
@ -39,6 +39,11 @@ namespace mt
|
|||||||
int try_count = 0;
|
int try_count = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
const mt::Robot* tmp_robot_meta = raw_list[rand() % raw_list.size()];
|
const mt::Robot* tmp_robot_meta = raw_list[rand() % raw_list.size()];
|
||||||
|
#ifdef DEBUG1
|
||||||
|
if (tmp_robot_meta->hero_id() != 30100) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
if (refreshed_robot_set.find(tmp_robot_meta->id()) == refreshed_robot_set.end()) {
|
if (refreshed_robot_set.find(tmp_robot_meta->id()) == refreshed_robot_set.end()) {
|
||||||
return tmp_robot_meta;
|
return tmp_robot_meta;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user