Exemple #1
0
    public static bool WillSpellSucceed(this ISpellCastProcessor processor, UniversalGuid?castId)
    {
        var time = processor.GetSpellGoTime(castId);

        return(time.HasValue);
    }
Exemple #2
0
    public static bool HasFailedCastingAt(this ISpellCastProcessor processor, UniversalGuid?castId, PacketBase packet)
    {
        var time = processor.GetSpellFailTime(castId);

        return(time.HasValue && time.Value == packet.Time.ToDateTime());
    }