When effect target ability is canceled because unit cannot reach destination technology resource is not refunded. Any idea how to fix this? If I cancel ability manually everything is refunded correctly.
If you add a mineral cost to a blizzard made ability like spawn infested terran and then put an infestor in the same scenario, the same bug will occur with mineral cost but not with energy costs, which suggests this is an actual bug.
The best theoretical work around I can think of is having your target effect use charges, then make a 2nd ability which supplies charges in exchange for minerals.
I managed to work around it by setting ability as "Cancellable" in "Approach" phase and setting "Approach" "Cancel effect" to one that gives casting player same amount of resource as intended ability use cost.
When effect target ability is canceled because unit cannot reach destination technology resource is not refunded. Any idea how to fix this? If I cancel ability manually everything is refunded correctly.
Sample map. If you attempt to cast ability on marine inside supply depots you lose 10 minerals permanently.
Shameless bump. Can someone confirm that this is editor bug?
If you add a mineral cost to a blizzard made ability like spawn infested terran and then put an infestor in the same scenario, the same bug will occur with mineral cost but not with energy costs, which suggests this is an actual bug.
The best theoretical work around I can think of is having your target effect use charges, then make a 2nd ability which supplies charges in exchange for minerals.
This bug seems to be still be present.
I managed to work around it by setting ability as "Cancellable" in "Approach" phase and setting "Approach" "Cancel effect" to one that gives casting player same amount of resource as intended ability use cost.