Skip to content

Anim-to-Unit not follow "CreateUnit.Owner=Killer" #1962

@xiongxionghai0

Description

@xiongxionghai0

Description

A multiplayer killed a unit X([X]→DestroyAnim=Anim, and [Anim]→CreateUnit=Y CreateUnit.Owner=Killer) by using the Detonate.Weapon from a superweapon with "SW.AlwaysGranted=yes", the created unit Y will be owned by the Neutral house not the killer's house.

Phobos Version

0.4/b48

Conditions to reproduce

Yuri's Revenge and Ares3.0

INI code

Rulesmd:
[SuperWeaponTypes]
+=TestingSW

[TestingSW]
UIName=Name:Testing
IsPowered=false
RechargeTime=.1
Type=PsychicReveal
ShowTimer=no
DisableableFromShell=no

SW.AlwaysGranted=yes
Detonate.Weapon=120mmE

[HTK]
Explosion=INVISO
DestroyAnim=TestingAnim

[Animations]
+=TestingAnim

artmd:
[TestingAnim]
Image=INVISO
Layer=ground
CreateUnit=HTK
CreateUnit.Owner=killer
CreateUnit.Mission=Sleep

Steps to reproduce

Map.zip

1.Down the file and put it in Yuri's Revenge with Ares3.0 and phobos0.4
2.Choose multiplayer games to start game with this map
3.When the game starts, using the testing superweapon destroy the Neutral HTK directly
...

Expected behaviour

The created HTK owned by player house(killer house)

Actual behaviour

The created HTK owned by Neutral house

Additional context

Video_1763445976028.mp4

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    ❓Phobos bugSomething isn't working properly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions