diff --git a/Crawler/LightningBolt.cpp b/Crawler/LightningBolt.cpp index 00755fb8..3845a425 100644 --- a/Crawler/LightningBolt.cpp +++ b/Crawler/LightningBolt.cpp @@ -53,10 +53,11 @@ bool LightningBolt::MonsterHit(Monster& monster) geom2d::linelineToTarget=geom2d::line(monster.GetPos(),m.GetPos()); float dist=lineToTarget.length(); if(dist<=72){ - m.Hurt(game->GetPlayer().GetAttack()*2); - EMITTER_LIST.push_back(std::make_unique(LightningBoltEmitter(monster.GetPos(),m.GetPos(),0.05,0.25,upperLevel))); - game->AddEffect(Effect(m.GetPos(),0.5,AnimationState::LIGHTNING_SPLASH,upperLevel,monster.GetSizeMult(),0.25,{},WHITE,util::random(PI))); - targetsHit++; + if(m.Hurt(game->GetPlayer().GetAttack()*2)){ + EMITTER_LIST.push_back(std::make_unique(LightningBoltEmitter(monster.GetPos(),m.GetPos(),0.05,0.25,upperLevel))); + game->AddEffect(Effect(m.GetPos(),0.5,AnimationState::LIGHTNING_SPLASH,upperLevel,monster.GetSizeMult(),0.25,{},WHITE,util::random(PI))); + targetsHit++; + } } if(targetsHit>=2)break; } diff --git a/Crawler/assets/c30010.png b/Crawler/assets/c30010.png new file mode 100644 index 00000000..56abaac2 Binary files /dev/null and b/Crawler/assets/c30010.png differ