This commit is contained in:
aozhiwei 2023-03-16 15:56:28 +08:00
parent cb7352480a
commit ddabd0787d
3 changed files with 15 additions and 0 deletions

View File

@ -93,7 +93,11 @@ void Buff::InternalTimerAddBuff()
auto caster_state = std::make_shared<SkillCasterState>(); auto caster_state = std::make_shared<SkillCasterState>();
caster_.Get()->FillSkillCasterState(caster_state.get()); caster_.Get()->FillSkillCasterState(caster_state.get());
#if 1
const mt::Skill* skill = skill_meta;
#else
const mt::Skill* skill = caster_.Get()->CurrentSkillMeta(); const mt::Skill* skill = caster_.Get()->CurrentSkillMeta();
#endif
auto timer_func = auto timer_func =
[this, caster_state, skill] (int event, const a8::Args* args) [this, caster_state, skill] (int event, const a8::Args* args)
{ {

View File

@ -141,6 +141,7 @@ int Creature::AddBuff(Creature* caster,
} }
} }
#endif #endif
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())) {
return 0; return 0;

View File

@ -152,6 +152,16 @@ namespace mt
return shield_addition(); return shield_addition();
} }
break; break;
case SkillNumberLispField_e::resume:
{
return resume();
}
break;
case SkillNumberLispField_e::resume_addition:
{
return resume_addition();
}
break;
case SkillNumberLispField_e::speed: case SkillNumberLispField_e::speed:
{ {
return _float_speed; return _float_speed;