1
This commit is contained in:
parent
7f54d5a33c
commit
68d1ed0543
@ -143,34 +143,18 @@ int BaseAgent::GetUseableSkill(Creature* target)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#if 1
|
#if 0
|
||||||
if (GetOwner()->IsHuman()) {
|
if (GetOwner()->IsHuman()) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
if (GetOwner()->GetHeroMeta() && GetOwner()->GetHeroMeta()->id() == 60100) {
|
Skill* skill = GetOwner()->GetMainSkill();
|
||||||
for (int skill_id : mt::Param::s().boss_skill_order) {
|
if (skill && GetOwner()->CanUseSkill(skill->GetSkillId())) {
|
||||||
Skill* skill = GetOwner()->GetSkill(skill_id);
|
if (skill->GetMinorType()) {
|
||||||
if (skill && GetOwner()->CanUseSkill(skill->GetSkillId())) {
|
return -1;
|
||||||
if (skill_id == 60121) {
|
|
||||||
if (target->GetPos().Distance2D2(GetOwner()->GetPos()) > skill->meta->skill_distance()) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!skill->GetMinorType()) {
|
|
||||||
return skill->GetSkillId();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
Skill* skill = GetOwner()->GetMainSkill();
|
|
||||||
if (skill && GetOwner()->CanUseSkill(skill->GetSkillId())) {
|
|
||||||
if (skill->GetMinorType()) {
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
return skill->GetSkillId();
|
|
||||||
}
|
}
|
||||||
|
return skill->GetSkillId();
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user