I got a fix for DJ when you steal a resource from the oponent and defeat such resource, is not perfect as is not tagging the resource to the DJ unit, but at least i wont give a resource owned by you.
cardGetters.php@230 add
function &GetControlledButNotOwnedResourceCards($player)
{
global $ownResources = &GetResourceCards($player)
// Filter out the resources that are owned by the player
$filteredResources = array_filter($ownResources, function($resource) use ($player) {
$owner = MZPlayerID($player, $resource);
return $owner <> $player;
});
return $filteredResources;
}
I got a fix for DJ when you steal a resource from the oponent and defeat such resource, is not perfect as is not tagging the resource to the DJ unit, but at least i wont give a resource owned by you.
cardGetters.php@230 add
AllyAbilities.php@306 replace