Skip to content

Instantly share code, notes, and snippets.

View fgreinus's full-sized avatar

Florian Greinus fgreinus

View GitHub Profile
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
Text,
TextInput,
StyleSheet,
ViewPropTypes,
} from 'react-native';
import * as Animatable from 'react-native-animatable';
@fgreinus
fgreinus / keybase.md
Created August 16, 2017 06:16
keybase.md

Keybase proof

I hereby claim:

  • I am fgreinus on github.
  • I am fgreinus (https://keybase.io/fgreinus) on keybase.
  • I have a public key ASCurJNOk-e5851UT1HCFtYdAb0kv3GP-Ie5u3EgAm3IjQo

To claim this, I am signing this object:

@fgreinus
fgreinus / script.php
Created May 7, 2017 19:06
Laravel: convert php-language files to json style
$files = collect(File::files(resource_path('lang/*')));
function dive(array $curr) {
$result = [];
$values = array_values($curr);
foreach ($values as $value) {
if (is_array($value)) {
$result = array_merge($result, dive($value));
@fgreinus
fgreinus / eclipse.desktop
Created November 24, 2016 13:43
.desktop File for Ubuntu to have eclipse as a real application (put into ~/.local/share/applications/eclipse.desktop)
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Eclipse
Icon=/home/fgreinus/Anwendungen/eclipse/icon.xpm
Path=/home/fgreinus/Anwendungen/eclipse
Exec=/home/fgreinus/Anwendungen/eclipse/eclipse
StartupNotify=false
StartupWMClass=Eclipse
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 0aead6c..d355185 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -372,8 +372,50 @@ void Aura::SetModifier(AuraType t, int32 a, uint32 pt, int32 miscValue)
m_modifier.periodictime = pt;
}
+#include "CPlayer.h"
+
@fgreinus
fgreinus / main.cpp
Created January 4, 2014 19:43
Simple Commandline Downloader that uses call parameters
#include <shlobj.h>
#include <stdbool.h>
#include <string.h>
#include <time.h>
#include <w32api.h>
#include <stdio.h>
#include <stdlib.h>
#include <wininet.h>
int DownloadFile(char url[],char file[])
{
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 1c87801..b7b335f 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1099,6 +1099,8 @@ void Spell::DoSpellHitOnUnit(Unit *unit, uint32 effectMask, bool isReflected)
return;
}
+ unit->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_HITBYSPELL);
+