1
This commit is contained in:
parent
a45a9ac286
commit
73c16e922e
@ -193,16 +193,19 @@ void Guide::ProcKillEnemy()
|
|||||||
[this, hero_id, hero_meta, pos, context, i ] (int event, const a8::Args* args)
|
[this, hero_id, hero_meta, pos, context, i ] (int event, const a8::Args* args)
|
||||||
{
|
{
|
||||||
if (a8::TIMER_EXEC_EVENT == event) {
|
if (a8::TIMER_EXEC_EVENT == event) {
|
||||||
context->heros[i] =
|
Hero* hero = owner_->room->CreateHero
|
||||||
owner_->room->CreateHero
|
|
||||||
(
|
(
|
||||||
nullptr,
|
nullptr,
|
||||||
hero_meta,
|
hero_meta,
|
||||||
pos,
|
pos,
|
||||||
pos,
|
pos,
|
||||||
666
|
666
|
||||||
)->GetUniId()
|
);
|
||||||
;
|
if (!hero) {
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
hero->SetHP(0.1f);
|
||||||
|
context->heros[i] = hero->GetUniId();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
&owner_->xtimer_attacher);
|
&owner_->xtimer_attacher);
|
||||||
@ -269,16 +272,19 @@ void Guide::ProcUseSkillAndKillEnemy()
|
|||||||
[this, hero_id, hero_meta, pos, context, i ] (int event, const a8::Args* args)
|
[this, hero_id, hero_meta, pos, context, i ] (int event, const a8::Args* args)
|
||||||
{
|
{
|
||||||
if (a8::TIMER_EXEC_EVENT == event) {
|
if (a8::TIMER_EXEC_EVENT == event) {
|
||||||
context->heros[i] =
|
Hero* hero = owner_->room->CreateHero
|
||||||
owner_->room->CreateHero
|
|
||||||
(
|
(
|
||||||
nullptr,
|
nullptr,
|
||||||
hero_meta,
|
hero_meta,
|
||||||
pos,
|
pos,
|
||||||
pos,
|
pos,
|
||||||
666
|
666
|
||||||
)->GetUniId()
|
);
|
||||||
;
|
if (!hero) {
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
hero->SetHP(0.1f);
|
||||||
|
context->heros[i] = hero->GetUniId();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
&owner_->xtimer_attacher);
|
&owner_->xtimer_attacher);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user