Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【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

Open
5 tasks done
SonofDestiny opened this issue Sep 26, 2024 · 0 comments
Labels
Phobos bug Something isn't working properly

Comments

@SonofDestiny
Copy link

Description

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

Phobos 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 map
ExtraWarheads ExpDie2WH and ExpDie2WH should still take effect and affect their STALKER,TARCHIA and CNTR,MWF

Actual behaviour

if the ExpDie1WH can't find any SREF or V3 on map
ExtraWarheads ExpDie2WH and ExpDie2WH can't affect STALKER,TARCHIA and CNTR,MWF, even if there are a lot of STALKER,TARCHIA,CNTR,MWF on map

Additional context

No response

Checklist

  • The issue happens on the latest official version of Phobos and wasn't fixed yet.
  • I agree to elaborate the details if requested and provide thorough testing if the bugfix is implemented.
  • I added a very descriptive title to this issue.
  • I used the GitHub search and read the issue list to find a similar issue and didn't find it.
  • I have attached as much information as possible (screenshots, gifs, videos, debug and exception logs, etc).
@SonofDestiny SonofDestiny added the Phobos bug Something isn't working properly label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Phobos bug Something isn't working properly
Projects
None yet
Development

No branches or pull requests

1 participant