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