I am trying to write a code that would teleport a player from the zone if his resilience rating is below X. But, it seems like resilience isn't valid StatsType but it's ITEM_MOD so I cannot figure out how to write the code.
So far, I am experimenting like:
Unit* owner = GetOwner();
if (area && (area->flags & AREA_FLAG_OUTDOOR_PVP))
if ((owner->GetStat(ITEM_MOD_RESILIENCE_RATING) < 3600 ))
That GetStat gotta be changed with valid expression. ~ Anyone?