1
This commit is contained in:
parent
4feeea40fe
commit
7ca1eccbb0
@ -16,6 +16,11 @@
|
||||
#include "skillhelper.h"
|
||||
#include "shot.h"
|
||||
|
||||
static int GetTraceTargetId(Creature* c)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Creature::Creature():MoveableEntity()
|
||||
{
|
||||
weak_ptr_chunk_.Set(this);
|
||||
@ -944,10 +949,12 @@ void Creature::ProcSkillPhase(MetaData::SkillPhase* phase)
|
||||
target_distance = std::max(0.0001f, target_distance);
|
||||
}
|
||||
if (bullet_meta && target_distance > 0.00001f) {
|
||||
int target_id = 0;
|
||||
if (CurrentSkill()->meta->GetMagicId() == MAGIC_HJHX) {
|
||||
target_distance = 0;
|
||||
TryAddBuff(this, 202013);
|
||||
TryAddBuff(this, 202014);
|
||||
target_id = GetTraceTargetId(this);
|
||||
|
||||
}
|
||||
a8::Vec2 old_attack_dir = GetAttackDir();
|
||||
@ -962,7 +969,7 @@ void Creature::ProcSkillPhase(MetaData::SkillPhase* phase)
|
||||
CurrentSkill() ? CurrentSkill()->meta : nullptr,
|
||||
target_distance,
|
||||
0,
|
||||
0);
|
||||
target_id);
|
||||
SetAttackDir(old_attack_dir);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user