【BUG】If a weapon's Main Warhead uses DetonateOnAllMapObjects=yes
but didn't affect any target, then the ExtraWarheads
of this weapon will not take effect as well
#1396
Labels
Phobos bug
Something isn't working properly
Description
If a weapon's Main Warhead uses
DetonateOnAllMapObjects=yes
but didn't affect any target, then theExtraWarheads
of this weapon will not take effect as wellPhobos Version
nightly build
Conditions to reproduce
even if the main warhead can't affect any valid target. the extrawarheads should function as well.
INI code
No response
Steps to reproduce
[ExpDie1W]
Damage=1
Projectile=InvisibleWork
Warhead=ExpDie1WH
ExtraWarheads=ExpDie2WH,ExpDie3WH
[ExpDie1WH]
DetonateOnAllMapObjects=yes
DetonateOnAllMapObjects.Full=yes
DetonateOnAllMapObjects.RequireVerses=no
DetonateOnAllMapObjects.AffectTargets=all
DetonateOnAllMapObjects.AffectTypes=SREF,V3
DetonateOnAllMapObjects.AffectHouses=team
AttachEffectAttachTypes=ExpPlus1AE
[ExpDie2WH]
DetonateOnAllMapObjects=yes
DetonateOnAllMapObjects.Full=yes
DetonateOnAllMapObjects.RequireVerses=no
DetonateOnAllMapObjects.AffectTargets=all
DetonateOnAllMapObjects.AffectTypes=STALKER,TARCHIA
DetonateOnAllMapObjects.AffectHouses=team
AttachEffectAttachTypes=ExpPlus2AE
[ExpDie3WH]
DetonateOnAllMapObjects=yes
DetonateOnAllMapObjects.Full=yes
DetonateOnAllMapObjects.RequireVerses=no
DetonateOnAllMapObjects.AffectTargets=all
DetonateOnAllMapObjects.AffectTypes=CNTR,MWF
DetonateOnAllMapObjects.AffectHouses=team
AttachEffectAttachTypes=ExpPlus3AE
Expected behaviour
if the
ExpDie1WH
can't find any SREF or V3 on mapExtraWarheads
ExpDie2WH
andExpDie2WH
should still take effect and affect theirSTALKER,TARCHIA
andCNTR,MWF
Actual behaviour
if the
ExpDie1WH
can't find any SREF or V3 on mapExtraWarheads
ExpDie2WH
andExpDie2WH
can't affectSTALKER,TARCHIA
andCNTR,MWF
, even if there are a lot ofSTALKER,TARCHIA,CNTR,MWF
on mapAdditional context
No response
Checklist
The text was updated successfully, but these errors were encountered: