mirror of
https://github.com/libretro/devilutionX.git
synced 2026-11-11 17:22:37 -10:00
♻️ Remove _misource access from SpawnLightning
This commit is contained in:
1 parent
28f12be8de
commit
831796fcd4
1 file changed
+1
-2
+1
-2
@@ -641,8 +641,7 @@ void SpawnLightning(Missile &missile, int dam)
|
||||
if (!TileHasAny(pn, TileProperties::BlockMissile)) {
|
||||
if (position != Point { missile.var1, missile.var2 } && InDungeonBounds(position)) {
|
||||
missile_id type = MIS_LIGHTNING;
|
||||
if (!missile.IsTrap() && missile._micaster == TARGET_PLAYERS
|
||||
&& IsAnyOf(Monsters[missile._misource].type().type, MT_STORM, MT_RSTORM, MT_STORML, MT_MAEL)) {
|
||||
if (IsAnyOf(missile.sourceMonster()->type().type, MT_STORM, MT_RSTORM, MT_STORML, MT_MAEL)) {
|
||||
type = MIS_LIGHTNING2;
|
||||
}
|
||||
AddMissile(
|
||||
|
||||
Reference in new issue
Block a user