1
This commit is contained in:
parent
7faf2e63ec
commit
401f75f629
@ -325,12 +325,39 @@ int BaseAgent::GetUseableSkill(Creature* target)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
Skill* skill = GetOwner()->GetMainSkill();
|
if (GetOwner()->GetHeroMeta() && GetOwner()->GetHeroMeta()->id() == 60100) {
|
||||||
if (skill && GetOwner()->CanUseSkill(skill->GetSkillId())) {
|
{
|
||||||
if (skill->GetMinorType()) {
|
Skill* skill = GetOwner()->GetSkill(60101);
|
||||||
return -1;
|
if (skill && GetOwner()->CanUseSkill(skill->GetSkillId())) {
|
||||||
|
if (!skill->GetMinorType()) {
|
||||||
|
return skill->GetSkillId();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
Skill* skill = GetOwner()->GetSkill(60111);
|
||||||
|
if (skill && GetOwner()->CanUseSkill(skill->GetSkillId())) {
|
||||||
|
if (!skill->GetMinorType()) {
|
||||||
|
return skill->GetSkillId();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (target->GetPos().Distance2D2(GetOwner()->GetPos()) < 100) {
|
||||||
|
Skill* skill = GetOwner()->GetSkill(60121);
|
||||||
|
if (skill && GetOwner()->CanUseSkill(skill->GetSkillId())) {
|
||||||
|
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;
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ namespace mt
|
|||||||
}
|
}
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (App::Instance()->instance_id == 6 ||
|
if (App::Instance()->instance_id == 6 ||
|
||||||
App::Instance()->instance_id == 2) {
|
App::Instance()->instance_id == 100) {
|
||||||
_float_cd = 6;
|
_float_cd = 6;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user