1
This commit is contained in:
parent
bd372eff94
commit
a8fe6926de
@ -1161,6 +1161,23 @@ void Human::ProcThrowDmg(int throw_uniid)
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
&room->xtimer_attacher_);
|
&room->xtimer_attacher_);
|
||||||
|
{
|
||||||
|
std::shared_ptr<Ability> old_context_ability = context_ability;
|
||||||
|
glm::vec3 old_context_dir = context_dir;
|
||||||
|
Position old_context_pos = context_pos;
|
||||||
|
context_dir = bomb_dir;
|
||||||
|
context_pos.FromGlmVec3(target_pos);
|
||||||
|
context_ability = nullptr;
|
||||||
|
const mt::Buff * buff_meta = mt::Buff::GetById(equip_meta->buffid());
|
||||||
|
if (buff_meta) {
|
||||||
|
AddBuff(this,
|
||||||
|
buff_meta
|
||||||
|
);
|
||||||
|
}
|
||||||
|
context_dir = old_context_dir;
|
||||||
|
context_pos = old_context_pos;
|
||||||
|
context_ability = old_context_ability;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
auto proc_molotor_cocktail_func =
|
auto proc_molotor_cocktail_func =
|
||||||
[this, equip_meta, context, bomb_pos, bomb_dir, target_pos] ()
|
[this, equip_meta, context, bomb_pos, bomb_dir, target_pos] ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user