1
This commit is contained in:
parent
c1e6dba2f7
commit
e00e72d0a7
@ -72,6 +72,9 @@ void Explosion::ProcDamage()
|
||||
grid_list,
|
||||
[this, &objects] (Creature* c, bool& stop)
|
||||
{
|
||||
if (c->dead) {
|
||||
return;
|
||||
}
|
||||
if (c->GetUniId() == exclude_uniid) {
|
||||
return;
|
||||
}
|
||||
@ -147,13 +150,13 @@ void Explosion::InternalAttack()
|
||||
.SetSender(self),
|
||||
[] (const a8::XParams& param)
|
||||
{
|
||||
std::shared_ptr<Explosion>* self = (std::shared_ptr<Explosion>*)param.sender.GetUserData();
|
||||
auto* self = (std::shared_ptr<Explosion>*)param.sender.GetUserData();
|
||||
(*self)->ProcDamage();
|
||||
},
|
||||
&room_->xtimer_attacher_.timer_list_,
|
||||
[] (const a8::XParams& param)
|
||||
{
|
||||
std::shared_ptr<Explosion>* self = (std::shared_ptr<Explosion>*)param.sender.GetUserData();
|
||||
auto* self = (std::shared_ptr<Explosion>*)param.sender.GetUserData();
|
||||
delete self;
|
||||
});
|
||||
}
|
||||
@ -161,7 +164,8 @@ void Explosion::InternalAttack()
|
||||
|
||||
bool Explosion::IsPreBattleExplosion()
|
||||
{
|
||||
return create_frameno_ <= room_->GetBattleStartFrameNo() || room_->GetBattleStartFrameNo() == 0;
|
||||
return create_frameno_ <= room_->GetBattleStartFrameNo() ||
|
||||
room_->GetBattleStartFrameNo() == 0;
|
||||
}
|
||||
|
||||
void Explosion::AddForceTarget(CreatureWeakPtr force_target)
|
||||
|
Loading…
x
Reference in New Issue
Block a user