Action Invoker source/target doesn’t work with `wait` meta action
#33 aberto em 3 de fev. de 2021
Métricas do repositório
- Stars
- (561 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
Describe the bug
ActionInvoker is null after wait action.
Version (commit hash) d2ad04b3f53abf5738ab2e178f3a2796d52e66fe
To Reproduce Steps to reproduce the behaviour:
- Create a script
- Create any event which has „invoker”
- Add action
wait - Add any action with invoker source
- Test in game - doesn’t work, because invoker is null there
Expected behaviour
Action Invoker should work as expected after wait action.
Proposed solution Best option would be to change TC to pass invoker here https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/AI/SmartScripts/SmartScript.cpp#L1542
Another option would be to change invoker to storedTarget in the editor, but there is a risk, this storedTargetID will be taken already. We can inform user during exporting that some storedTarget will be reserved?