mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-22 02:57:14 +00:00
Update Automation.php
This commit is contained in:
@@ -4764,12 +4764,8 @@ $wallimg = "<img src=\"".GP_LOCATE."img/g/g3".$targettribe."Icon.gif\" height=\"
|
|||||||
$database->query($q);
|
$database->query($q);
|
||||||
$row['lastgavemedal'] = time()+MEDALINTERVAL;
|
$row['lastgavemedal'] = time()+MEDALINTERVAL;
|
||||||
}
|
}
|
||||||
$giveMedal = true;
|
$time = $row['lastgavemedal'] + MEDALINTERVAL;
|
||||||
} else {
|
if ($time < time()) $giveMedal = true;
|
||||||
$time = $row['lastgavemedal'] + MEDALINTERVAL;
|
|
||||||
if ($time < time()) {
|
|
||||||
$giveMedal = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($giveMedal && MEDALINTERVAL > 0){
|
if($giveMedal && MEDALINTERVAL > 0){
|
||||||
|
|||||||
Reference in New Issue
Block a user