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