diff --git a/d3hog_driver.php b/d3hog_driver.php
index 8e01e67..01a30de 100644
--- a/d3hog_driver.php
+++ b/d3hog_driver.php
@@ -6,6 +6,7 @@ include_once(__DIR__ . '/libs/dpclass.php');
if($_POST['submit']) {
$diabloProgressUrl = trim($_POST['url']);
+ $elementalOnWeapon = isset($_POST['elemental']['elemental']) ? true : false;
if(preg_match('{^http://www.diabloprogress.com/hero/[\w]+\-[\d]+/[\w]+/[\d]+$}', $diabloProgressUrl) != 1) {
die('Bad URL. Please enter the entire diablo progress URL.
Example: http://www.diabloprogress.com/hero/celanian-1548/HsuMing/21706367');
}
@@ -18,7 +19,7 @@ if($_POST['submit']) {
$contents = curl_exec($curl);
curl_close($curl);
- $character = DPClassFactory::createClassObject($contents);
+ $character = DPClassFactory::createClassObject($contents, $elementalOnWeapon);
if($character === FALSE) {
die('Bad class. Either your class could not be detected or we do not support your class at this time.');
@@ -38,5 +39,6 @@ Paragon Score: paragonScore(), 2, '.', ',')
?>