1
This commit is contained in:
parent
557d6e9b23
commit
d0d55e07b5
@ -13,6 +13,7 @@
|
|||||||
#include "incubator.h"
|
#include "incubator.h"
|
||||||
#include "car.h"
|
#include "car.h"
|
||||||
#include "frameevent.h"
|
#include "frameevent.h"
|
||||||
|
#include "skillhelper.h"
|
||||||
|
|
||||||
Buff::Buff()
|
Buff::Buff()
|
||||||
{
|
{
|
||||||
@ -467,6 +468,21 @@ void Buff::ProcSprint()
|
|||||||
delete hited_objects;
|
delete hited_objects;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (skill_meta) {
|
||||||
|
switch (skill_meta->GetMagicId()) {
|
||||||
|
case MAGIC_YMCZ:
|
||||||
|
{
|
||||||
|
owner->room->xtimer.ModifyTimer
|
||||||
|
(remover_timer,
|
||||||
|
SkillHelper::GetYmczBuffTime(skill_meta) / FRAME_RATE_MS);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
{
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Buff::ProcSeletTargetWithSelfPos()
|
void Buff::ProcSeletTargetWithSelfPos()
|
||||||
|
@ -231,3 +231,8 @@ float SkillHelper::GetSjydhxRecoverHp(Creature* c, const MetaData::Skill* skill_
|
|||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int SkillHelper::GetYmczBuffTime(const MetaData::Skill* skill_meta)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
@ -29,6 +29,8 @@ class SkillHelper
|
|||||||
static int GetSwzbDmg(const MetaData::Skill* skill_meta);
|
static int GetSwzbDmg(const MetaData::Skill* skill_meta);
|
||||||
static int GetSwzbEffect(const MetaData::Skill* skill_meta);
|
static int GetSwzbEffect(const MetaData::Skill* skill_meta);
|
||||||
static int GetSwzbPullDistance(const MetaData::Skill* skill_meta);
|
static int GetSwzbPullDistance(const MetaData::Skill* skill_meta);
|
||||||
|
//野蛮冲撞
|
||||||
|
static int GetYmczBuffTime(const MetaData::Skill* skill_meta);
|
||||||
|
|
||||||
static void ProcBulletHitBuff(Bullet* bullet, Creature* c, int buff_uniid);
|
static void ProcBulletHitBuff(Bullet* bullet, Creature* c, int buff_uniid);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user