*/
    public int getUnswitchedDefense() {
        int total = getBaseDefense();
        int setToughness = getSetToughness();
        if(setToughness != -1)
        	total = setToughness;
        
        total += getTempDefenseBoost() + getSemiPermanentDefenseBoost()
                + getCounters(Counters.P1P1) + (2 * getCounters(Counters.P1P2))
                - getCounters(Counters.M1M1) + getCounters(Counters.P0P1)
                - (2 * getCounters(Counters.M0M2))
                + (2 * getCounters(Counters.P2P2)) - getCounters(Counters.M0M1)
                - getCounters(Counters.M2M1) - (2 * getCounters(Counters.M2M2));
        return total;
    }