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