1
This commit is contained in:
parent
bace996af2
commit
23425be6d6
@ -298,19 +298,6 @@ void Buff::PreProcess()
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
// 999
|
|
||||||
#if 1
|
|
||||||
if (meta->buff_id() == 8042) {
|
|
||||||
#ifdef DEBUG
|
|
||||||
{
|
|
||||||
a8::XPrintf("添加减速%f", {meta->_buff_param3});
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
if (owner->GetAbility()->GetSpeedRuduceTimes() <= 0) {
|
|
||||||
owner->GetAbility()->AddSpeedRuduce(-meta->_buff_param3/100.0f);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,13 +135,6 @@ int Creature::AddBuff(Creature* caster,
|
|||||||
std::shared_ptr<a8::Args> init_args,
|
std::shared_ptr<a8::Args> init_args,
|
||||||
std::shared_ptr<std::vector<float>> buff_vars)
|
std::shared_ptr<std::vector<float>> buff_vars)
|
||||||
{
|
{
|
||||||
#if 999
|
|
||||||
if (buff_meta->buff_id() == 8042) {
|
|
||||||
if (GetBuffById(buff_meta->buff_id())) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
int buff_id = buff_meta->buff_id();
|
int buff_id = buff_meta->buff_id();
|
||||||
if (buff_meta->_only_spec_race) {
|
if (buff_meta->_only_spec_race) {
|
||||||
if (!a8::HasBitFlag(buff_meta->_only_spec_race, GetEntityType())) {
|
if (!a8::HasBitFlag(buff_meta->_only_spec_race, GetEntityType())) {
|
||||||
@ -653,18 +646,6 @@ void Creature::OnBuffRemove(Buff& buff)
|
|||||||
if (buff.meta->disable_useskill()) {
|
if (buff.meta->disable_useskill()) {
|
||||||
GetAbility()->DecDisableUseSkillTimes();
|
GetAbility()->DecDisableUseSkillTimes();
|
||||||
}
|
}
|
||||||
#if 999
|
|
||||||
if (buff.meta->buff_id() == 8042) {
|
|
||||||
if (GetAbility()->GetSpeedRuduceTimes() > 0) {
|
|
||||||
GetAbility()->DelSpeedRuduce(-buff.meta->_buff_param3/100.0f);
|
|
||||||
}
|
|
||||||
#ifdef DEBUG
|
|
||||||
{
|
|
||||||
a8::XPrintf("移除减速%f\nad", {buff.meta->_buff_param3});
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
buff.Deactivate();
|
buff.Deactivate();
|
||||||
if (!buff.meta->only_server()) {
|
if (!buff.meta->only_server()) {
|
||||||
room->frame_event.RemoveBuff(GetWeakPtrRef(), &buff);
|
room->frame_event.RemoveBuff(GetWeakPtrRef(), &buff);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user