clean up duplicate trait lookup in RASpecialPowers
This commit is contained in:
@@ -35,11 +35,7 @@ namespace OpenRA.Scripting
|
|||||||
var targetCell = kv.Second;
|
var targetCell = kv.Second;
|
||||||
var cs = target.Trait<Chronoshiftable>();
|
var cs = target.Trait<Chronoshiftable>();
|
||||||
if (cs.CanChronoshiftTo(target, targetCell, true))
|
if (cs.CanChronoshiftTo(target, targetCell, true))
|
||||||
target.Trait<Chronoshiftable>().Teleport(target,
|
cs.Teleport(target, targetCell, duration, killCargo,chronosphere);
|
||||||
targetCell,
|
|
||||||
duration,
|
|
||||||
killCargo,
|
|
||||||
chronosphere);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user