Example #1
0
        public override void OnResponse(Server.Network.NetState sender, RelayInfo info)
        {
            if (info.ButtonID == 2)
            {
                bool okay = info.IsSwitched(1);

                if (okay)
                {
                    m_Spell.AcceptBodyGuard(m_Protectee);
                }
                else
                {
                    m_Spell.DeclineBodyGuard(m_Protectee);
                }
            }
        }
Example #2
0
        public override void OnResponse(Server.Network.NetState sender, RelayInfo info)
        {
            if (info.ButtonID == 2)
            {
                bool okay = info.IsSwitched(1);

                if (okay)
                {
                    m_Spell.AcceptBodyGuard(m_Protectee, m_Spell);
                }
                else
                {
                    m_Spell.DeclineBodyGuard(m_Protectee);
                }

                /*if ( okay )
                 *      JusticeVirtue.OnVirtueAccepted( m_Protector, m_Protectee );
                 * else
                 *      JusticeVirtue.OnVirtueRejected( m_Protector, m_Protectee );*/
            }
        }