コード例 #1
0
    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);
    }
コード例 #2
0
 public void CreateEnemyTargetArrow(Entity originEntity)
 {
     this.m_ReticleType = TARGET_RETICLE_TYPE.DefaultArrow;
     this.CreateTargetArrow(true, originEntity.GetEntityId(), originEntity.GetEntityId(), null, true, false);
 }