i got plunder and my status was a truce , so why did i lose everything

i thought you couldnet get a ttack while you were on a truce