public void CreateFriendlyTargetArrow(Entity originLocationEntity, Entity sourceEntity, bool showDamageIndicatorText, bool showArrow = true, string overrideText = null, bool useHandAsOrigin = false) { if (!((GameMgr.Get() != null) && GameMgr.Get().IsSpectator())) { this.DisableCollidersForUntargetableCards(sourceEntity.GetCard()); } Spell playSpell = sourceEntity.GetCard().GetPlaySpell(true); if (playSpell != null) { this.m_ReticleType = playSpell.m_TargetReticle; } else { this.m_ReticleType = TARGET_RETICLE_TYPE.DefaultArrow; } string damageIndicatorText = null; if (overrideText != null) { damageIndicatorText = overrideText; } else if (showDamageIndicatorText) { damageIndicatorText = sourceEntity.GetTargetingArrowText(); } this.CreateTargetArrow(false, originLocationEntity.GetEntityId(), sourceEntity.GetEntityId(), damageIndicatorText, showArrow, useHandAsOrigin); }
public void CreateEnemyTargetArrow(Entity originEntity) { this.m_ReticleType = TARGET_RETICLE_TYPE.DefaultArrow; this.CreateTargetArrow(true, originEntity.GetEntityId(), originEntity.GetEntityId(), null, true, false); }