What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

How to tell if mobs are not Normal?

mdtrav

New Member
Joined
Nov 7, 2013
Messages
7
Reaction score
0
Looking at the mob object, I may have glanced over it. But how do I tell if a mob is not a normal mob in my CR code?

is it something simple like !MainTarget.Rarity("Normal")
 
It's an enum! So here's an example:
Code:
                    Cast("Heavy Strike", obj => TargetList.First(), ret =>
                    {
                        var monster = TargetList.First() as Monster;
                        if (monster == null)
                            return false;

                        //if (LokiPoe.CurrentLocalData.WorldAreaName == "The Ledge")
                            //return false;

                        // Cast single target DPS skill on these types of mobs.
                        if (!(monster.Rarity == Rarity.Rare || monster.Rarity == Rarity.Unique))
                            return false;

                        if (TargetList.Count(t => monster.Position.Distance(t.Position) < 15) >= 3)
                            return false;

                        return true;
                    }),

That example code would cast HeavyStrike on Rare/Unique mobs. It will not compile as-is, unless you were using the same CR I pasted it from, but that's how you can use rarity.
 
Back
Top