1
This commit is contained in:
parent
bbd187541c
commit
e64246b0c8
@ -136,8 +136,10 @@ void Buff::InternalTimerAddBuff()
|
||||
[this, caster_state, skill] (int event, const a8::Args* args)
|
||||
{
|
||||
if (a8::TIMER_EXEC_EVENT == event) {
|
||||
if (!caster_state->caster.Get()) {
|
||||
return;
|
||||
}
|
||||
Creature* receiver = owner;
|
||||
if (caster_state->caster.Get()) {
|
||||
CreatureWeakPtr caster = caster_state->caster;
|
||||
std::shared_ptr<Ability> old_context_ability = receiver->context_ability;
|
||||
glm::vec3 old_context_dir = receiver->context_dir;
|
||||
@ -160,7 +162,6 @@ void Buff::InternalTimerAddBuff()
|
||||
receiver->context_pos = old_context_pos;
|
||||
receiver->context_ability = old_context_ability;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
switch (meta->buff_effect() ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user