Skip to content

`Actor.spells` seemingly "shared" across certain actors despite passing seperate objects to the function

for example if you add a spell to one Alit (types.Actor.spells(self):add(spellid)) this spell will appear on all other Alits despite never actually interacting with them or adding spells to them directly in any way, in the screenshots ive added despite only adding a spell to the first Alit (object@0x146e), the second Alit (object@1004be9) also gets that spell:

first_alit.png

second_alit.png

Steps to reproduce:

  1. Find/Spawn two Alits
  2. on one of them, select them in the lua console (luas) and add a spell to them, then loop over their spells to see that it was added
  3. exit() lua mode
  4. on the second alit, select them in the lua console and loop over their spells; You will see that despite never calling `:add()` on their spells they somehow have the spell added to the other Alit.
Edited by Johannes Dickenson